diff options
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 7cc8b9191..d37f50b17 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -133,7 +133,7 @@ $.widget( "ui.selectmenu", { var item = ui.item.data( "ui-selectmenu-item" ); // prevent inital focus from firing and checks if its a newly focused item - if ( that.focusIndex !== undefined && item.index !== that.focusIndex ) { + if ( that.focusIndex != null && item.index !== that.focusIndex ) { that._trigger( "focus", event, { item: item } ); if ( !that.isOpen ) { that._select( item, event ); |