mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00: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:
@@ -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();
|
||||
},
|
||||
|
Reference in New Issue
Block a user