fix: do not destroy Children untill animation done

pull/20443/head
pjy 2020-11-23 14:26:19 +08:00
parent a38a939798
commit 33898d1354
1 changed files with 3 additions and 3 deletions

View File

@ -132,9 +132,6 @@
} else {
this.$el.removeEventListener('scroll', this.updatePopper);
if (!this.closed) this.$emit('close');
if (this.destroyOnClose) {
this.slotVisibility = false;
}
}
}
},
@ -190,6 +187,9 @@
},
afterLeave() {
this.$emit('closed');
if (this.destroyOnClose) {
this.slotVisibility = false;
}
}
},