mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: fixed small regression which added unwanted, empty optgroup to every menu
This commit is contained in:
parent
4a9e26c68e
commit
1092551e21
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@ -244,7 +244,7 @@ $.widget( "ui.selectmenu", {
|
||||
currentOptgroup = "";
|
||||
|
||||
$.each( items, function( index, item ) {
|
||||
if ( item.optgroup !== currentOptgroup ) {
|
||||
if ( item.optgroup != currentOptgroup ) {
|
||||
$( '<li />', {
|
||||
'class': 'ui-selectmenu-optgroup' + ( item.element.parent( "optgroup" ).attr( "disabled" ) ? ' ui-state-disabled' : '' ),
|
||||
html: item.optgroup
|
||||
|
Loading…
Reference in New Issue
Block a user