mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Selectmenu: remove unwanted Menu mouseover event, fixes problem with selected item highlighting on menu open
This commit is contained in:
parent
e9a35319d4
commit
f2228b0553
7
ui/jquery.ui.selectmenu.js
vendored
7
ui/jquery.ui.selectmenu.js
vendored
@ -163,9 +163,10 @@ $.widget( "ui.selectmenu", {
|
||||
// change menu styles?
|
||||
if ( this.options.dropdown ) {
|
||||
this.menu.addClass( 'ui-corner-bottom' ).removeClass( 'ui-corner-all' );
|
||||
}
|
||||
}
|
||||
|
||||
// unbind Menu document event
|
||||
// unbind uneeded Menu events
|
||||
this.menu.unbind ( "mouseleave.menu" );
|
||||
$( document ).unbind( "click.menu" );
|
||||
},
|
||||
|
||||
@ -409,7 +410,7 @@ $.widget( "ui.selectmenu", {
|
||||
this.menu.attr("aria-hidden", !this.isOpen);
|
||||
this.button.attr("aria-expanded", this.isOpen);
|
||||
},
|
||||
|
||||
|
||||
_getCreateOptions: function() {
|
||||
return { disabled: !!this.element.attr( 'disabled' ) };
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user