mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
fix(Popup): lock-scroll not work in some cases (#6698)
This commit is contained in:
@@ -145,7 +145,7 @@ export function PopupMixin(options = {}) {
|
||||
},
|
||||
|
||||
removeLock() {
|
||||
if (this.lockScroll) {
|
||||
if (this.lockScroll && context.lockCount) {
|
||||
context.lockCount--;
|
||||
off(document, 'touchstart', this.touchStart);
|
||||
off(document, 'touchmove', this.onTouchMove);
|
||||
|
Reference in New Issue
Block a user