-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Taro 3.6.26 View 初始绑定 onClick 为 undefined,点击报错 #15530
Comments
taro-bot2
bot
added
F-react
Framework - React
T-h5
Target - 编译到 H5
V-3
Version - 3.x
labels
Apr 18, 2024
This was referenced Apr 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
浏览器版本: chrome
使用框架: React
复现步骤
View 初始绑定 onClick 为 undefined,点击报错
期望结果
View 初始绑定 onClick 为 undefined,点击不报错
实际结果
View 初始绑定 onClick 为 undefined,点击报错
环境信息
补充信息
报错原因
attachProps.ts 代码中,未判断 newEventHandler 不存在的情况,绑定报错
taro/packages/taro-components-library-react/src/react-component-lib/utils/attachProps.ts
Lines 98 to 130 in b3e4a35
The text was updated successfully, but these errors were encountered: