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 GitHub
parent 0f3e117232
commit 33ed788262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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