aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2016-11-16 12:52:15 -0500
committerScott González <scott.gonzalez@gmail.com>2016-11-16 12:52:15 -0500
commita2b25ef6caae3e1a272214839b815a6387618124 (patch)
treefe0b441544fcce9e597109bde89348e1f6256eb4 /ui
parent9a4c0571577e20795c19796594747f0f8beb476a (diff)
downloadjquery-ui-a2b25ef6caae3e1a272214839b815a6387618124.tar.gz
jquery-ui-a2b25ef6caae3e1a272214839b815a6387618124.zip
Selectmenu: Don't render options with the `hidden` attribute
Fixes #15098
Diffstat (limited to 'ui')
-rw-r--r--ui/widgets/selectmenu.js4
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;