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
H5
https://github.com/Yuiffy/taro-swiper-autoplay-issue/tree/master
https://www.yuiffy.com/taro-swiper-autoplay-issue
浏览器版本: Chrome 83 使用框架: React
自定义tab使用display: block / none来显示不同内容; 每个tab都含有swiper,其中ATab的swiper是autoplay=true, 另外一个BTab内的swiper是autoplay=false。 一开始在ATab下,能够正常autoplay,切换到BTab,再切回ATab,则ATab下的swiper也不再autoplay了,刷新页面才能恢复。
不同tab下的swiper的autoplay不会互相影响
切到autoplay=false的tab后切回来,原本的swiper也不再autoplay了
Taro CLI 3.0.2 environment info: System: OS: macOS 10.14.6 Shell: 5.0.16 - /usr/local/bin/bash Binaries: Node: 13.10.1 - ~/.nvm/versions/node/v13.10.1/bin/node Yarn: 1.22.0 - /usr/local/bin/yarn npm: 6.14.5 - ~/.nvm/versions/node/v13.10.1/bin/npm npmPackages: @tarojs/components: 3.0.2 => 3.0.2 @tarojs/mini-runner: 3.0.2 => 3.0.2 @tarojs/react: 3.0.2 => 3.0.2 @tarojs/webpack-runner: 3.0.2 => 3.0.2 babel-preset-taro: 3.0.2 => 3.0.2 eslint-config-taro: 3.0.2 => 3.0.2 react: ^16.10.0 => 16.13.1
Taro2、Taro3都能复现
更新:后续又发现用此种display: block/none来切换的tab里,两边的swiper都是autoplay=true也会有问题,切多了也会停止自动播放
The text was updated successfully, but these errors were encountered:
该问题在 2.x 中已经修复
Sorry, something went wrong.
ZakaryCode
Successfully merging a pull request may close this issue.
相关平台
H5
复现仓库
代码仓库
https://github.com/Yuiffy/taro-swiper-autoplay-issue/tree/master
实际体验网址
https://www.yuiffy.com/taro-swiper-autoplay-issue
浏览器版本: Chrome 83
使用框架: React
复现步骤
自定义tab使用display: block / none来显示不同内容;
每个tab都含有swiper,其中ATab的swiper是autoplay=true, 另外一个BTab内的swiper是autoplay=false。
一开始在ATab下,能够正常autoplay,切换到BTab,再切回ATab,则ATab下的swiper也不再autoplay了,刷新页面才能恢复。
期望结果
不同tab下的swiper的autoplay不会互相影响
实际结果
切到autoplay=false的tab后切回来,原本的swiper也不再autoplay了
环境信息
补充信息
Taro2、Taro3都能复现
更新:后续又发现用此种display: block/none来切换的tab里,两边的swiper都是autoplay=true也会有问题,切多了也会停止自动播放
The text was updated successfully, but these errors were encountered: