fix: ie9 remove dom error #705

pull/833/head
tangjinzhou 2019-05-25 13:54:25 +08:00
parent 49d60f759c
commit e9f2858ae0
1 changed files with 5 additions and 1 deletions

View File

@ -49,7 +49,11 @@ export default {
});
},
beforeDestroy() {
this.$el.remove();
if (this.$el.parentNode) {
this.$el.parentNode.removeChild(this.$el);
} else if (this.$el.remove) {
this.$el.remove();
}
},
methods: {
onAlign(popupDomNode, align) {