mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix: Popup remove watcher
This commit is contained in:
parent
865f92f735
commit
a94aa5bd77
@ -169,9 +169,12 @@ export default {
|
|||||||
doAfterClose() {
|
doAfterClose() {
|
||||||
this.closing = false;
|
this.closing = false;
|
||||||
PopupManager.closeModal(this._popupId);
|
PopupManager.closeModal(this._popupId);
|
||||||
|
|
||||||
|
if (this.preventScroll) {
|
||||||
document.removeEventListener('touchstart', this.recordPosition, false);
|
document.removeEventListener('touchstart', this.recordPosition, false);
|
||||||
document.removeEventListener('touchmove', this.watchTouchMove, false);
|
document.removeEventListener('touchmove', this.watchTouchMove, false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user