Skip to content

Commit 94b0dcf

Browse files
author
Jason Madsen
committed
[fixed] issue where menu always steals focus
1 parent 3fd228c commit 94b0dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/Menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var Menu = module.exports = React.createClass({
3737
handleBlur: function(e) {
3838
// give next element a tick to take focus
3939
setTimeout(function() {
40-
if (!document.activeElement.className.match(/Menu__/)){
40+
if (!document.activeElement.className.match(/Menu__/) && this.state.active){
4141
this.closeMenu();
4242
}
4343
}.bind(this), 1);

0 commit comments

Comments
 (0)