Skip to content

Commit 0efe66e

Browse files
author
Steven G. Harms
committed
menubar: relocate focus event onto *item* v. menuItem
I should have finished my coffee before I committed this.
1 parent bb8e2e0 commit 0efe66e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/jquery.ui.menubar.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ $.widget( "ui.menubar", {
197197
__applyMouseAndKeyboardBehaviorForMenuItem: function( $anItem, menubar ) {
198198
menubar._on( $anItem, {
199199
focus: function( event ){
200-
$anItem.closest( this.options.items ).addClass("ui-state-focus");
200+
$anItem.addClass("ui-state-focus");
201201
},
202202
focusout: function( event ){
203-
$anItem.closest( this.options.items ).removeClass("ui-state-focus");
203+
$anItem.removeClass("ui-state-focus");
204204
}
205205
} );
206206
},

0 commit comments

Comments
 (0)