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>
Wed, 4 Nov 2020 03:27:55 +0000 (11:27 +0800)
commit5d16bfcf7cb87476564176060ad8ccbaef2adbdd
treef5929a1f43d588a3c642a7f0b09f120cd47dadea
parent189a4c8f8e8da3bbec0e6988fd578ce18649e6e3
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