Skip to content

Commit da00884

Browse files
committed
Handle the case where vue calls beforeUpdate before mounted
1 parent a6920d8 commit da00884

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export default defineComponent({
5252
})
5353
},
5454
reset: function () {
55+
if (this.$refs._ == null) {
56+
return
57+
}
5558
this.$el.replaceChild(/** @type {HTMLAnchorElement} */ (this.$refs._), this.$el.lastChild)
5659
}
5760
}

0 commit comments

Comments
 (0)