Selectmenu: proposed fix for menu delay issue

This commit is contained in:
Felix Nagel 2012-11-10 01:25:30 +01:00
parent 7725e4adba
commit a9a6e3beaf

View File

@ -166,6 +166,8 @@ $.widget( "ui.selectmenu", {
this.menu.addClass( 'ui-corner-bottom' ).removeClass( 'ui-corner-all' ); this.menu.addClass( 'ui-corner-bottom' ).removeClass( 'ui-corner-all' );
} }
// make sure focus stays on selected item
menuInstance.delay = 999999999;
// unbind uneeded Menu events // unbind uneeded Menu events
menuInstance._off( this.menu, "mouseleave" ); menuInstance._off( this.menu, "mouseleave" );
}, },