Skip to content

Commit 0dc2373

Browse files
committed
fix(karol-f#178): Cannot reuse element after it's detached
1 parent 10fe7a0 commit 0dc2373

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vue-custom-element.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function install(Vue) {
5050

5151
options.destroyTimeout !== null && setTimeout(() => {
5252
if (this.__detached__ && this.__vue_custom_element__) {
53+
this.__detached__ = false;
5354
this.__vue_custom_element__.$destroy(true);
5455
delete this.__vue_custom_element__;
5556
delete this.__vue_custom_element_props__;

0 commit comments

Comments
 (0)