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:
Jake 2020-07-27 15:50:58 +08:00 committed by chenjiahan
parent f8b9399ab5
commit 56519228e8

View File

@ -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();
},