Skip to content

Commit d9cb4a9

Browse files
committed
Menu: small fix
1 parent 5ba3070 commit d9cb4a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/menu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ return $.widget( "ui.menu", {
110110
var target = $( event.currentTarget );
111111
// Remove ui-state-active class from siblings of the newly focused menu item
112112
// to avoid a jump caused by adjacent elements both having a class with a border
113-
target.siblings( ".ui-state-active" ).removeClass( "ui-state-active" );
113+
target.siblings().children( ".ui-state-active" ).removeClass( "ui-state-active" );
114+
114115
this.focus( event, target );
115116
},
116117
mouseleave: "collapseAll",

0 commit comments

Comments
 (0)