MDL-70075 core: jQuery.attr() does not accept a bool value
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 2 Nov 2020 07:42:13 +0000 (15:42 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Thu, 5 Nov 2020 01:05:38 +0000 (09:05 +0800)
commitdc7ca062caf7e9e334337df5dd8bfcb8a50acb8a
tree8b50f601b3f54d71cb75eca11b39e1d1c0783121
parent8100d46f855d9aefaf0edf5cfdfb381aff153dfd
MDL-70075 core: jQuery.attr() does not accept a bool value

The documented values that jQuery.attr() accepts are String, Number, or
null. For some reason, when we pass a Boolean value, the subsequent
click handler does not work in some situations.

Changing this to take a Number, and unsetting it when empty, resolves
this issue.
lib/amd/build/form-autocomplete.min.js
lib/amd/build/form-autocomplete.min.js.map
lib/amd/src/form-autocomplete.js