diff options
author | Felix Nagel <info@felixnagel.com> | 2012-02-26 01:50:55 +0100 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-02-26 01:50:55 +0100 |
commit | f2228b0553b2cd6bebd0882f5928c19a2d1b3d09 (patch) | |
tree | 7c4d2eb458602036f77b9db8e039ab065aaad2b5 | |
parent | e9a35319d46f4d45edab3dcbfb8cf8aa8152d330 (diff) | |
download | jquery-ui-f2228b0553b2cd6bebd0882f5928c19a2d1b3d09.tar.gz jquery-ui-f2228b0553b2cd6bebd0882f5928c19a2d1b3d09.zip |
Selectmenu: remove unwanted Menu mouseover event, fixes problem with selected item highlighting on menu open
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 1f6e057e7..8193783c7 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -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' ) }; }, |