-
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
H5 下浏览器废弃事件处理,诸如 DOMNodeInserted、DOMNodeRemoved 事件等,需进行修复 #16421
Comments
taro-bot2
bot
added
F-react
Framework - React
T-h5
Target - 编译到 H5
V-3
Version - 3.x
labels
Aug 29, 2024
v4 已经删除了这块代码 |
是的,但是目前我们项目使用的依旧是3.X的版本,暂时没有迁移4的计划 |
This was referenced Aug 31, 2024
4.0.5的swiper已经进行升级了,移除了这些废弃的api~感谢反馈 |
@ZEJIA-LIU 请问3.X版本是不在考虑修复了嘛,我目前项目使用的都是3.X的版本,意味着我项目现在只能升级到4的版本么 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
H5
浏览器版本: chrome 128.0.6613.85
使用框架: React
复现步骤
编译为H5平台后,浏览器控制台会提示当前使用的诸如 DOMNodeInserted、DOMNodeRemoved 事件即将废弃
后定位错误信息位置,为 taro 中的 swiper 组件中使用了上述事件
期望结果
移除相关废弃事件,改用浏览器现阶段支持的事件
实际结果
以下是浏览器控制台错误信息
环境信息
补充信息
目前定位到的使用相关废弃事件的代码路径
packages/taro-components/src/components/swiper/swiper.tsx
第 195 行
The text was updated successfully, but these errors were encountered: