Selectmenu: follow-up to: menuItems now contains link elements instead of list elements

This commit is contained in:
Felix Nagel 2013-02-13 23:30:37 +01:00
parent 06eb3bff6a
commit 50bb89f3be

View File

@ -267,7 +267,7 @@ $.widget( "ui.selectmenu", {
},
_getSelectedItem: function() {
return this.menuItems.eq( this.element[ 0 ].selectedIndex );
return this.menuItems.eq( this.element[ 0 ].selectedIndex ).parent( "li" );
},
_toggle: function( event ) {