mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: using prop instead of attr to receive disabled state
This commit is contained in:
parent
70a43607fa
commit
61be0e5eb0
4
ui/jquery.ui.selectmenu.js
vendored
4
ui/jquery.ui.selectmenu.js
vendored
@ -181,7 +181,7 @@ $.widget( "ui.selectmenu", {
|
||||
this._setAria( item.data( "ui-selectmenu-item" ) );
|
||||
|
||||
// Set disabled state
|
||||
this._setOption( "disabled", !!this.element.attr( "disabled" ) );
|
||||
this._setOption( "disabled", !!this.element.prop( "disabled" ) );
|
||||
},
|
||||
|
||||
open: function( event ) {
|
||||
@ -446,7 +446,7 @@ $.widget( "ui.selectmenu", {
|
||||
},
|
||||
|
||||
_getCreateOptions: function() {
|
||||
return { disabled: !!this.element.attr( "disabled" ) };
|
||||
return { disabled: !!this.element.prop( "disabled" ) };
|
||||
},
|
||||
|
||||
_readOptions: function( options ) {
|
||||
|
Loading…
Reference in New Issue
Block a user