Skip to content

Commit e9f2858

Browse files
committed
fix: ie9 remove dom error #705
1 parent 49d60f7 commit e9f2858

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: components/vc-trigger/Popup.jsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ export default {
4949
});
5050
},
5151
beforeDestroy() {
52-
this.$el.remove();
52+
if (this.$el.parentNode) {
53+
this.$el.parentNode.removeChild(this.$el);
54+
} else if (this.$el.remove) {
55+
this.$el.remove();
56+
}
5357
},
5458
methods: {
5559
onAlign(popupDomNode, align) {

0 commit comments

Comments
 (0)