diff --git a/packages/core/src/hydration/utils.ts b/packages/core/src/hydration/utils.ts index 8cc38c47fec..5243fb4abb7 100644 --- a/packages/core/src/hydration/utils.ts +++ b/packages/core/src/hydration/utils.ts @@ -598,12 +598,10 @@ export function getParentBlockHydrationQueue( function gatherDeferBlocksByJSActionAttribute(doc: Document): Set { const jsactionNodes = doc.body.querySelectorAll('[jsaction]'); const blockMap = new Set(); + const eventTypes = [hoverEventNames.join(':;'), interactionEventNames.join(':;')].join('|'); for (let node of jsactionNodes) { const attr = node.getAttribute('jsaction'); const blockId = node.getAttribute('ngb'); - const eventTypes = [...hoverEventNames.join(':;'), ...interactionEventNames.join(':;')].join( - '|', - ); if (attr?.match(eventTypes) && blockId !== null) { blockMap.add(node as HTMLElement); }