0.5.2 • Published 3 months ago
makeup-exit-emitter v0.5.2
makeup-exit-emitter
Emits custom 'focusExit' event when keyboard focus has exited an element and all of its descendants.
Experimental
This module is still in an experimental state; until it reaches v1, all minor releases must be considered as breaking changes.
Example
import ExitEmitter from "makeup-exit-emitter";
const el = document.getElementById("#widget1");
ExitEmitter.addFocusExit(el);
el.addEventListener("focusExit", function (e) {
console.log(this, e); // outputs (el1, 'focusExit')
});
Methods
- addFocusExit(el)
- removeFocusExit(el)
Events
- 'focusExit'
- event.detail
- fromElement
- toElement
- event.detail
Dependencies
0.5.2
3 months ago
0.5.1
5 months ago
0.5.0
7 months ago
0.4.2
7 months ago
0.4.1
2 years ago
0.4.0
3 years ago
0.3.1
3 years ago
0.3.0
4 years ago
0.2.6
5 years ago
0.2.5
5 years ago
0.2.4
5 years ago
0.2.3
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago