]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: fire focus event when menu is opened
authorFelix Nagel <info@felixnagel.com>
Thu, 30 May 2013 19:05:48 +0000 (21:05 +0200)
committerFelix Nagel <info@felixnagel.com>
Thu, 30 May 2013 19:05:48 +0000 (21:05 +0200)
ui/jquery.ui.selectmenu.js

index 8b86b61a4582d382f86c9ed5825ba5f5eab5ed9e..7cc8b9191cef1256957d37a51d6ba9baf8bf980c 100644 (file)
@@ -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.isOpen && that.focusIndex !== undefined && item.index !== that.focusIndex ) {
+                               if ( that.focusIndex !== undefined && item.index !== that.focusIndex ) {
                                        that._trigger( "focus", event, { item: item } );
                                        if ( !that.isOpen ) {
                                                that._select( item, event );