fix(Stepper): fix mobile safari page scroll down issue (#7701)
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user