mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-05-13 03:01:39 -04:00
Selectmenu: using prop instead of attr to receive disabled state
This commit is contained in:
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 ) {
|
||||
|
||||
Reference in New Issue
Block a user