Commit 5e06a1a4 authored by Allenice's avatar Allenice Committed by 杨奕

Dialog: remove DOM node after destroyed when appendToBody (#9005)

* Form: fix async validate bug

* Form: fix async validate bug

* When dialo's <appendToBody> is true, remove DOM node after destory
parent 931249ba
......@@ -177,6 +177,13 @@
document.body.appendChild(this.$el);
}
}
},
destroyed() {
// if appendToBody is true, remove DOM node after destroy
if (this.appendToBody && this.$el) {
this.$el.parentNode.removeChild(this.$el);
}
}
};
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment