Closed dpritchett closed 10 years ago
Replacing calls to .attr('disabled', '') with .prop('disabled', '') fixes #54 on 2-0-stable.
.attr('disabled', '')
.prop('disabled', '')
2-0-stable
From the jQuery docs on .attr():
.attr()
As of jQuery 1.6, the .attr() method returns undefined for attributes that have not been set. To retrieve and change DOM properties such as the checked, selected, or disabled state of form elements, use the .prop() method.
I'm no jQuery expert, but it seems to have fixed my problem locally. Here's a gist of my full deface override: https://gist.github.com/dpritchett/7256ea124f0aa6e272fb
Thanks @dpritchett. I've added this to 2-0-stable, 2-1-stable and master.
Replacing calls to
.attr('disabled', '')
with.prop('disabled', '')
fixes #54 on2-0-stable
.From the jQuery docs on
.attr()
:I'm no jQuery expert, but it seems to have fixed my problem locally. Here's a gist of my full deface override: https://gist.github.com/dpritchett/7256ea124f0aa6e272fb