mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: fixed _getCreateOptions usage
This commit is contained in:
parent
505d16a3e9
commit
98d72c7f6d
7
ui/jquery.ui.selectmenu.js
vendored
7
ui/jquery.ui.selectmenu.js
vendored
@ -182,9 +182,8 @@ $.widget( "ui.selectmenu", {
|
|||||||
this.menu.menu( "focus", null, item );
|
this.menu.menu( "focus", null, item );
|
||||||
this._setSelected( item.data( "item.selectmenu" ) );
|
this._setSelected( item.data( "item.selectmenu" ) );
|
||||||
|
|
||||||
// set and transfer disabled state
|
// set disabled state
|
||||||
this._getCreateOptions();
|
this._setOption( "disabled", this._getCreateOptions()[ 'disabled' ] );
|
||||||
this._setOption( "disabled", this.options.disabled );
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -421,7 +420,7 @@ $.widget( "ui.selectmenu", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_getCreateOptions: function() {
|
_getCreateOptions: function() {
|
||||||
this.options.disabled = ( this.element.attr( 'disabled' ) ) ? true : false;
|
return { disabled: ( this.element.attr( 'disabled' ) ) ? true : false };
|
||||||
},
|
},
|
||||||
|
|
||||||
_readOptions: function( options ) {
|
_readOptions: function( options ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user