fix(Popup): may throw error when using get-container and destroyed

This commit is contained in:
陈嘉涵
2020-02-04 14:28:10 +08:00
parent 14ddf449a5
commit 52aa9e8559
3 changed files with 20 additions and 10 deletions
+7
View File
@@ -0,0 +1,7 @@
export function removeNode(el: Node) {
const parent = el.parentNode;
if (parent) {
parent.removeChild(el);
}
}