Skip to content
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

Taro3 Vue无法触发touchstart、touchcancel事件 #10074

Closed
qiuwenxing opened this issue Aug 18, 2021 · 3 comments · Fixed by #10133
Closed

Taro3 Vue无法触发touchstart、touchcancel事件 #10074

qiuwenxing opened this issue Aug 18, 2021 · 3 comments · Fixed by #10133
Labels
F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@qiuwenxing
Copy link

相关平台

微信小程序

小程序基础库: 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
@yijinc
Copy link
Contributor

yijinc commented Aug 31, 2022

最新版本还是碰到这个问题

@Chen-jj
Copy link
Contributor

Chen-jj commented Aug 31, 2022

@yijinc 重新提一下 issue,并附上 demo 咯

@yijinc
Copy link
Contributor

yijinc commented Sep 1, 2022

找到原因了
vue jsx 事件是 onTouchstart
react 事件 是 onTouchStart
大小写问题😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants