From: Felix Nagel Date: Thu, 30 May 2013 19:05:48 +0000 (+0200) Subject: Selectmenu: fire focus event when menu is opened X-Git-Tag: 1.11.0-beta.1~160^2~59 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dfbd712d99ac41f775e14bc4e7586c3e20bdb5f0;p=jquery-ui.git Selectmenu: fire focus event when menu is opened --- diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 8b86b61a4..7cc8b9191 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.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 );