diff --git a/packages/inferno/src/DOM/events/delegation.ts b/packages/inferno/src/DOM/events/delegation.ts index 4ceb5162b..b0708ae4c 100644 --- a/packages/inferno/src/DOM/events/delegation.ts +++ b/packages/inferno/src/DOM/events/delegation.ts @@ -184,7 +184,7 @@ function rootEvent(name: string): (event: SemiSyntheticEvent) => void { function attachEventToDocument( name: string, ): (event: SemiSyntheticEvent) => void { - const attachedEvent = rootEvent(name); + const attachedEvent = rootEvent(name); document.addEventListener(normalizeEventName(name), attachedEvent); return attachedEvent; }