Skip to content

Commit

Permalink
🐛 Fix issue where destroyed events were passed to getEventTarget on T…
Browse files Browse the repository at this point in the history
…ooltipListener
  • Loading branch information
kierandrewett committed Feb 2, 2024
1 parent d3db5f4 commit eec66b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions actors/DotTooltipListenerChild.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ export class DotTooltipListenerChild extends JSWindowActorChild {
* @param {Event} event
*/
getEventTarget(event) {
if (!event) return;

const { target } = event;

const composedTarget = /** @type {any} */ (event).composedTarget;
Expand Down

0 comments on commit eec66b8

Please sign in to comment.