mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Stepper): double tap to scroll in safari (#6882)
* fix(Stepper): double tap to scroll in safari * Update index.js Co-authored-by: neverland <416417567@163.com>
This commit is contained in:
parent
f8b9399ab5
commit
56519228e8
@ -273,7 +273,9 @@ export default createComponent({
|
||||
render() {
|
||||
const createListeners = (type) => ({
|
||||
on: {
|
||||
click: () => {
|
||||
click: (e) => {
|
||||
// disable double tap scrolling on mobile safari
|
||||
e.preventDefault();
|
||||
this.type = type;
|
||||
this.onChange();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user