Skip to content

Commit

Permalink
chore: fix the underlying problem
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Sep 11, 2024
1 parent 789c993 commit 50dd486
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/runtime-dom/src/apiCustomElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ export class VueElement
}

connectedCallback(): void {
if (!this.shadowRoot && !this._slots) {
// aviod resolving component if it's not connected
if (!this.isConnected) return

if (!this.shadowRoot) {
this._parseSlots()
}
this._connected = true
Expand Down

0 comments on commit 50dd486

Please sign in to comment.