fix(ActionSheet): should not submit form (#5181)
This commit is contained in:
@@ -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 即可避免该问题。
|
||||
|
||||
Reference in New Issue
Block a user