File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -182,9 +182,8 @@ $.widget( "ui.selectmenu", {
182182 this . menu . menu ( "focus" , null , item ) ;
183183 this . _setSelected ( item . data ( "item.selectmenu" ) ) ;
184184
185- // set and transfer disabled state
186- this . _getCreateOptions ( ) ;
187- this . _setOption ( "disabled" , this . options . disabled ) ;
185+ // set disabled state
186+ this . _setOption ( "disabled" , this . _getCreateOptions ( ) [ 'disabled' ] ) ;
188187 }
189188 } ,
190189
@@ -421,7 +420,7 @@ $.widget( "ui.selectmenu", {
421420 } ,
422421
423422 _getCreateOptions : function ( ) {
424- this . options . disabled = ( this . element . attr ( 'disabled' ) ) ? true : false ;
423+ return { disabled : ( this . element . attr ( 'disabled' ) ) ? true : false } ;
425424 } ,
426425
427426 _readOptions : function ( options ) {
You can’t perform that action at this time.
0 commit comments