From: Felix Nagel Date: Mon, 29 Apr 2013 21:24:15 +0000 (+0200) Subject: Selectmenu: using prop instead of attr to receive disabled state X-Git-Tag: 1.11.0-beta.1~160^2~76 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=61be0e5eb054abd7c9ecf799c8ea7ab5db8d5533;p=jquery-ui.git Selectmenu: using prop instead of attr to receive disabled state --- diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index aea1b8f0f..339246304 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -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 ) {