]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: using prop instead of attr to receive disabled state
authorFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 21:24:15 +0000 (23:24 +0200)
committerFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 21:24:15 +0000 (23:24 +0200)
ui/jquery.ui.selectmenu.js

index aea1b8f0f4a3e1ddd7d665a14da6f8187be9899e..339246304c86183deb522510a4312b827d81b595 100644 (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 ) {