diff options
author | Felix Nagel <info@felixnagel.com> | 2013-04-29 23:24:15 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2013-04-29 23:24:15 +0200 |
commit | 61be0e5eb054abd7c9ecf799c8ea7ab5db8d5533 (patch) | |
tree | fd144b64f1a483a7fd8cebb669454f940e8aefd8 /ui | |
parent | 70a43607faf3651fec07150e0f4e7b99984835e4 (diff) | |
download | jquery-ui-61be0e5eb054abd7c9ecf799c8ea7ab5db8d5533.tar.gz jquery-ui-61be0e5eb054abd7c9ecf799c8ea7ab5db8d5533.zip |
Selectmenu: using prop instead of attr to receive disabled state
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) { |