We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8e2e0 commit 0efe66eCopy full SHA for 0efe66e
ui/jquery.ui.menubar.js
@@ -197,10 +197,10 @@ $.widget( "ui.menubar", {
197
__applyMouseAndKeyboardBehaviorForMenuItem: function( $anItem, menubar ) {
198
menubar._on( $anItem, {
199
focus: function( event ){
200
- $anItem.closest( this.options.items ).addClass("ui-state-focus");
+ $anItem.addClass("ui-state-focus");
201
},
202
focusout: function( event ){
203
- $anItem.closest( this.options.items ).removeClass("ui-state-focus");
+ $anItem.removeClass("ui-state-focus");
204
}
205
} );
206
0 commit comments