mirror of
https://github.com/youzan/vant.git
synced 2026-04-05 02:05:11 +08:00
fix(Stepper): fix mobile safari page scroll down issue (#7701)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user