Skip to content
Permalink
Browse files
fix(custom-elements): custom element should re-instantiate when inser…
…ted again (#6966)

fix #6934
  • Loading branch information
ysy945 committed Nov 11, 2022
1 parent ffef822 commit 67890daad1a8474c5178565f32a4efa427db911a
Showing 1 changed file with 5 additions and 4 deletions.
@@ -196,7 +196,11 @@ export class VueElement extends BaseClass {
connectedCallback() {
this._connected = true
if (!this._instance) {
this._resolveDef()
if (this._resolved) {
this._update()
} else {
this._resolveDef()
}
}
}

@@ -214,9 +218,6 @@ export class VueElement extends BaseClass {
* resolve inner component definition (handle possible async component)
*/
private _resolveDef() {
if (this._resolved) {
return
}
this._resolved = true

// set initial attrs

0 comments on commit 67890da

Please sign in to comment.