Selectmenu: using prop instead of attr to receive disabled state

This commit is contained in:
Felix Nagel 2013-04-29 23:24:15 +02:00
parent 70a43607fa
commit 61be0e5eb0

View File

@ -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 ) {