We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
微信小程序
小程序基础库: 2.19.1 使用框架: Vue 2
<button @touchstart="onTouchstart">按钮 export default { methods: { onTouchstart(){ //touchstart事件无法触发 console.log('touchstart') } } }
touchstart可以触发
touchstart无法触发
Taro CLI 3.3.2 environment info: System: OS: Windows 10 Binaries: Node: 16.6.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.10 - C:\Users\Administrator\AppData\Roaming\npm\yarn.CMD npm: 7.20.3 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered:
fix(shared): 修复 Button 组件不触发 touch 事件的问题,fix #10074
e037e89
fix(shared): 修复 Button 组件不触发 touch 事件的问题,fix #10074 (#10133)
7933bb9
最新版本还是碰到这个问题
Sorry, something went wrong.
@yijinc 重新提一下 issue,并附上 demo 咯
找到原因了 vue jsx 事件是 onTouchstart react 事件 是 onTouchStart 大小写问题😂
onTouchstart
onTouchStart
Successfully merging a pull request may close this issue.
相关平台
微信小程序
小程序基础库: 2.19.1
使用框架: Vue 2
复现步骤
<button @touchstart="onTouchstart">按钮
export default {
methods: {
onTouchstart(){
//touchstart事件无法触发
console.log('touchstart')
}
}
}
期望结果
touchstart可以触发
实际结果
touchstart无法触发
环境信息
The text was updated successfully, but these errors were encountered: