fix(ActionSheet): should not submit form (#5181)

This commit is contained in:
neverland
2019-12-03 17:48:41 +08:00
committed by GitHub
parent 2bc3ae2b60
commit 93df00ce85
3 changed files with 15 additions and 10 deletions
+2 -2
View File
@@ -186,6 +186,6 @@ export default {
### 滑动轮播时为什么触发了 click 事件?
这种情况通常是由于项目中引入了`fastclick`库导致的`fastclick`会在滑动过程中触发`click`事件
这种情况通常是由于项目中引入了`fastclick`库导致的`fastclick`的原理是通过 Touch 事件模拟出 click 事件,而 Swipe 内部默认会阻止 touchmove 事件冒泡,干扰了 fastclick 的判断,导致出现这个问题
将 Swipe 组件的 stop-propagation 属性设置为 false 即可避免这个问题。
将 Swipe 组件的 stop-propagation 属性设置为 false 即可避免问题。