Skip to content

Commit c953666

Browse files
author
yangchangtao
committed
chore: update
1 parent 07d28f8 commit c953666

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/runtime-dom/src/apiCustomElement.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,10 +586,9 @@ export class VueElement
586586
if (owner === this._def) {
587587
return
588588
}
589-
if (this._styleChildren.has(owner)) {
590-
const styleList = this._styleChildren.get(owner)!
591-
styleList.forEach(s => s.remove())
592-
this.shadowRoot!.prepend(...styleList)
589+
const styleChild = this._styleChildren.get(owner)
590+
if (styleChild) {
591+
this.shadowRoot!.prepend(...styleChild)
593592
return
594593
}
595594
this._styleChildren.set(owner, styleList)

0 commit comments

Comments
 (0)