From eec66b891620e12cda7751546deb75dfddb4ff59 Mon Sep 17 00:00:00 2001 From: EnderDev Date: Fri, 2 Feb 2024 22:23:31 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20issue=20where=20destroyed?= =?UTF-8?q?=20events=20were=20passed=20to=20getEventTarget=20on=20TooltipL?= =?UTF-8?q?istener?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actors/DotTooltipListenerChild.sys.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actors/DotTooltipListenerChild.sys.mjs b/actors/DotTooltipListenerChild.sys.mjs index cfd642f619..ab2a7c98a8 100644 --- a/actors/DotTooltipListenerChild.sys.mjs +++ b/actors/DotTooltipListenerChild.sys.mjs @@ -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;