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
无法用代码触发组件(Button)的 Tap 事件 #15614
Comments
taro-bot2
bot
added
F-react
Framework - React
T-weapp
Target - 编译到微信小程序
V-3
Version - 3.x
labels
May 3, 2024
This was referenced May 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
复现仓库
https://gist.github.com/loocor/2945eb43532b4e878a054cc491ac97aa
小程序基础库: 3.4.2
使用框架: React
复现步骤
期望结果
点击 “用于检查数据的按钮” 后,能够按其 onClick 事件代码那样,触发 “在线咨询” 按钮被点击
实际结果
Wechat Devtools 工具控制台输出错误信息:
环境信息
补充信息
使用 ref 模式如 refContact.current?.click() 还是出错,提示 click() 不是函数
The text was updated successfully, but these errors were encountered: