You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const ac = new AbortController();
let { signal } = ac;
parentElement.addEventListener(
'pointerenter',
this.openOverlay,
{ signal }
);
parentElement.addEventListener('focusin', this.openOverlay, { signal });
parentElement.addEventListener(
'pointerleave',
this.closeOverlay,
{ signal }
);
parentElement.addEventListener('focusout', this.closeOverlay, { signal });
ac.abort();
To simplify events being added/removed from elements imperatively.
Things to confirm:
does the abortController really work across multiple listeners?
does Safari support it broadly enough to allow in the library?
does it have undesired perf costs?
others?
The text was updated successfully, but these errors were encountered:
Code of conduct
Description of issue
Can whatwg/dom#911 be leveraged along the lines of:
To simplify events being added/removed from elements imperatively.
Things to confirm:
The text was updated successfully, but these errors were encountered: