mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-23 06:59:15 +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);
|
||||
}
|
||||
},
|
||||
|
||||
onMousedown(event) {
|
||||
// fix mobile safari page scroll down issue
|
||||
// see: https://github.com/youzan/vant/issues/7690
|
||||
if (this.disableInput) {
|
||||
event.preventDefault();
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
render() {
|
||||
@ -315,6 +323,7 @@ export default createComponent({
|
||||
onInput={this.onInput}
|
||||
onFocus={this.onFocus}
|
||||
onBlur={this.onBlur}
|
||||
onMousedown={this.onMousedown}
|
||||
/>
|
||||
<button
|
||||
vShow={this.showPlus}
|
||||
|
Loading…
x
Reference in New Issue
Block a user