From b352924f6f61f4dab841be0a8fc2b1bb446bec1e Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 1 Apr 2022 20:43:30 +0200 Subject: [PATCH] Teact: `load` event can not be delegated --- src/lib/teact/dom-events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/teact/dom-events.ts b/src/lib/teact/dom-events.ts index 1298f5a8..f303fba1 100644 --- a/src/lib/teact/dom-events.ts +++ b/src/lib/teact/dom-events.ts @@ -3,7 +3,7 @@ import { DEBUG } from '../../config'; type Handler = (e: Event) => void; type DelegationRegistry = Map; -const NON_BUBBLEABLE_EVENTS = new Set(['scroll', 'mouseenter', 'mouseleave']); +const NON_BUBBLEABLE_EVENTS = new Set(['scroll', 'mouseenter', 'mouseleave', 'load']); const documentEventCounters: Record = {}; const delegationRegistryByEventType: Record = {};