mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Popup): incorrect lock scroll in some cases (#6892)
This commit is contained in:
parent
378009fefa
commit
c265aa153f
@ -99,9 +99,12 @@ export function PopupMixin(options = {}) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
this.removeLock();
|
|
||||||
removeOverlay(this);
|
removeOverlay(this);
|
||||||
|
|
||||||
|
if (this.opened) {
|
||||||
|
this.removeLock();
|
||||||
|
}
|
||||||
|
|
||||||
if (this.getContainer) {
|
if (this.getContainer) {
|
||||||
removeNode(this.$el);
|
removeNode(this.$el);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user