]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
button.js: Set disabled property in addition to disabled attribute to preserve behavi...
authorChris Rebert <github@chrisrebert.com>
Tue, 12 Jul 2016 11:04:40 +0000 (04:04 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Jul 2016 11:04:40 +0000 (04:04 -0700)
commite67e3e9b19bde8161526e835c43f2e1b23368499
tree9e6e7ba878bfd043f2101439451ebeb18009b054
parent1956146787d686f5771ae51f7b96f3a3ad62ce09
button.js: Set disabled property in addition to disabled attribute to preserve behavior under jQuery 3 (#20278)

This code ought to have used .prop instead of .attr in the first place,
but we can't get rid of the attr manipulation now due to backward compatibility constraints.

Refs https://github.com/jquery/jquery-migrate/blob/3.0.0/warnings.md#jqmigrate-jqueryfnremoveattr-no-longer-sets-boolean-properties
Refs #16834

[skip validator]
js/button.js