From fd5c981a290a69f3b34a6a189ec6e3d4989b1d20 Mon Sep 17 00:00:00 2001 From: Jessica Janiuk Date: Thu, 27 Mar 2025 13:48:00 -0400 Subject: [PATCH] fix(core): fix regexp for event types (#60592) This regexp accidentally worked. It was splitting by individual character and putting a pipe in rather than splitting by set of event types PR Close #60592 --- packages/core/src/hydration/utils.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); }