Skip to content
Permalink
Browse files

Selectmenu: using prop instead of attr to receive disabled state

  • Loading branch information...
fnagel committed Apr 29, 2013
1 parent 70a4360 commit 61be0e5eb054abd7c9ecf799c8ea7ab5db8d5533
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 ) {

0 comments on commit 61be0e5

Please sign in to comment.
You can’t perform that action at this time.