From ab4cfce43fafff3f7302fff4e4c952489c245804 Mon Sep 17 00:00:00 2001 From: hbeyan Date: Thu, 7 Nov 2024 03:31:43 +0300 Subject: [PATCH] fix(runtime): scope id fix for component children for typescript issue (#6041) Co-authored-by: huseyin.beyan --- src/runtime/vdom/vdom-render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/vdom/vdom-render.ts b/src/runtime/vdom/vdom-render.ts index ca07149c418..27b42c2c3c0 100644 --- a/src/runtime/vdom/vdom-render.ts +++ b/src/runtime/vdom/vdom-render.ts @@ -984,7 +984,7 @@ const updateElementScopeIds = (element: d.RenderNode, parent: d.RenderNode, iter if (element && parent && element.nodeType === NODE_TYPE.ElementNode) { const scopeIds = new Set(findScopeIds(parent).filter(Boolean)); if (scopeIds.size) { - element.classList?.add(...(element['s-scs'] = [...scopeIds])); + element.classList?.add(...(element['s-scs'] = Array.from(scopeIds))); if (element['s-ol'] || iterateChildNodes) { /**