Skip to content
Permalink
Browse files

Selectmenu: remove unwanted Menu mouseover event, fixes problem with …

…selected item highlighting on menu open
  • Loading branch information...
fnagel committed Feb 26, 2012
1 parent e9a3531 commit f2228b0553b2cd6bebd0882f5928c19a2d1b3d09
Showing with 4 additions and 3 deletions.
  1. +4 −3 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' ) };
},

0 comments on commit f2228b0

Please sign in to comment.
You can’t perform that action at this time.