mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-23 15:09:16 +08:00
fix(Stepper): fix mobile safari page scroll down issue (#7701)
This commit is contained in:
parent
52d882e9b2
commit
e20cef22a6
@ -268,6 +268,14 @@ export default createComponent({
|
|||||||
preventDefault(event);
|
preventDefault(event);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onMousedown(event) {
|
||||||
|
// fix mobile safari page scroll down issue
|
||||||
|
// see: https://github.com/youzan/vant/issues/7690
|
||||||
|
if (this.disableInput) {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
@ -315,6 +323,7 @@ export default createComponent({
|
|||||||
onInput={this.onInput}
|
onInput={this.onInput}
|
||||||
onFocus={this.onFocus}
|
onFocus={this.onFocus}
|
||||||
onBlur={this.onBlur}
|
onBlur={this.onBlur}
|
||||||
|
onMousedown={this.onMousedown}
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
vShow={this.showPlus}
|
vShow={this.showPlus}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user