Permalink
Browse files

Selectmenu: Enable/disable via prop, not attr

Fixes gh-7997
Closes gh-7998
  • Loading branch information...
gabrielschulhof committed Mar 13, 2015
1 parent 4ed23b3 commit 9b6b40555527846ea097a820c692e04b819c4c40
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/widgets/forms/select.js
@@ -41,7 +41,7 @@ $.widget( "mobile.selectmenu", $.extend( {
},
_setDisabled: function( value ) {
this.element.attr( "disabled", value );
this.element.prop( "disabled", value );
this.button.attr( "aria-disabled", value );
return this._setOption( "disabled", value );
},
@@ -140,7 +140,7 @@ $.widget( "mobile.selectmenu", $.extend( {
}
// Disable if specified
if ( options.disabled || this.element.attr( "disabled" )) {
if ( options.disabled || this.element.prop( "disabled" ) ) {
this.disable();
}

0 comments on commit 9b6b405

Please sign in to comment.