New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
怎么做移动端点击延迟处理? #3135
Comments
这是fastclick的问题。
3、问题关键,点击el-checkbox 事件触发dom为 span.el-checkbox__label 所以单纯的给组件添加类名 needsClick 也不能解决问题。所以我们需要手动修改一下fastclick.js的源码
直接将el-checkbox硬编码排除fastclick的作用范围。有其他元素出问题的时候,可以在 FastClick.prototype.needsClick中debugger查看具体触发click的dom |
楼上说的相当详细了,给个赞 |
vue-element-admin做了移动端的适配,没有做点击延迟处理。我加入了fastclick会出现el-checkbox点击选不中的情况,该怎么处理。找了好久没找到解决方法。
The text was updated successfully, but these errors were encountered: