fix(Popup): incorrect lock scroll in some cases (#6892)

This commit is contained in:
neverland 2020-07-29 10:55:54 +08:00 committed by GitHub
parent 378009fefa
commit c265aa153f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,9 +99,12 @@ export function PopupMixin(options = {}) {
},
beforeDestroy() {
this.removeLock();
removeOverlay(this);
if (this.opened) {
this.removeLock();
}
if (this.getContainer) {
removeNode(this.$el);
}