Skip to content

Commit

Permalink
fix(runtime): scope id fix for component children for typescript issue (
Browse files Browse the repository at this point in the history
#6041)

Co-authored-by: huseyin.beyan <[email protected]>
  • Loading branch information
hbeyan and huseyin.beyan authored Nov 6, 2024
1 parent 94fc60b commit c493a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/vdom/vdom-render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
/**
Expand Down

0 comments on commit c493a9e

Please sign in to comment.