MDL-70075 core: Listen for the `focus` and `blur` events again
authorAndrew Nicols <andrew@nicols.co.uk>
Mon, 2 Nov 2020 00:12:22 +0000 (08:12 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 4 Nov 2020 03:27:55 +0000 (11:27 +0800)
commit3caa6bfbe11662867084e163ade5283106e55a74
treea7c88bb45a4361e1c004f8c5432b1374b1293056
parent2444c9d9be59a84f376d7109bd5b4ec87a96c95b
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