diff options
Diffstat (limited to 'ui/widgets/selectmenu.js')
-rw-r--r-- | ui/widgets/selectmenu.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/widgets/selectmenu.js b/ui/widgets/selectmenu.js index 900a245f7..52139f73e 100644 --- a/ui/widgets/selectmenu.js +++ b/ui/widgets/selectmenu.js @@ -656,6 +656,10 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { var that = this, data = []; options.each( function( index, item ) { + if ( item.hidden ) { + return; + } + data.push( that._parseOption( $( item ), index ) ); } ); this.items = data; |