mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
[bugfix] Popup: get-container error when destoryed (#2679)
This commit is contained in:
@@ -82,7 +82,7 @@ export default {
|
|||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.close();
|
this.close();
|
||||||
|
|
||||||
if (this.getContainer) {
|
if (this.getContainer && this.$parent && this.$parent.$el) {
|
||||||
this.$parent.$el.appendChild(this.$el);
|
this.$parent.$el.appendChild(this.$el);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user