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", {
182
182
this . menu . menu ( "focus" , null , item ) ;
183
183
this . _setSelected ( item . data ( "item.selectmenu" ) ) ;
184
184
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' ] ) ;
188
187
}
189
188
} ,
190
189
@@ -421,7 +420,7 @@ $.widget( "ui.selectmenu", {
421
420
} ,
422
421
423
422
_getCreateOptions : function ( ) {
424
- this . options . disabled = ( this . element . attr ( 'disabled' ) ) ? true : false ;
423
+ return { disabled : ( this . element . attr ( 'disabled' ) ) ? true : false } ;
425
424
} ,
426
425
427
426
_readOptions : function ( options ) {
You can’t perform that action at this time.
0 commit comments