MDL-70075 core: Listen for the `focus` and `blur` events again
commitf4dfe66ea8a215ec4dca60abcf33d07208cf57d3
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 2 Nov 2020 00:12:22 +0000 (2 08:12 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Thu, 5 Nov 2020 01:05:38 +0000 (5 09:05 +0800)
tree435aaedf4e6f4ba489408ae3a1135226c7131280
parent15b4174a9fe4bfdcb39705bf373c0d39cd0cbb3e
MDL-70075 core: Listen for the `focus` and `blur` events again

The `blur` event does not bubble, but the `focusout` events are not
available in all supported versions of Firefox.

Rather than switching event, this patch using event capture to
effectively achieve the same result and bubble the event up through the
DOM to the delegated listener.

There should be no functional change with this patch, except to support
Firefox fully.
lib/amd/build/custom_interaction_events.min.js
lib/amd/build/custom_interaction_events.min.js.map
lib/amd/src/custom_interaction_events.js