From a2b25ef6caae3e1a272214839b815a6387618124 Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 16 Nov 2016 12:52:15 -0500 Subject: Selectmenu: Don't render options with the `hidden` attribute Fixes #15098 --- ui/widgets/selectmenu.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui') 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; -- cgit v1.2.3