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

H5环境,Tabbar会导致 usePageScroll useReachBottom 不触发<Taro 3.0.13 React> #7752

Closed
cpocar opened this issue Sep 27, 2020 · 2 comments · Fixed by #8522
Closed

H5环境,Tabbar会导致 usePageScroll useReachBottom 不触发<Taro 3.0.13 React> #7752

cpocar opened this issue Sep 27, 2020 · 2 comments · Fixed by #8522
Assignees
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Milestone

Comments

@cpocar
Copy link

cpocar commented Sep 27, 2020

相关平台

H5

复现仓库

https://github.com/cpocar/taro-demo-app
浏览器版本: Chrome82****小程序基础库: H5的Bug
使用框架: React

复现步骤

git clone https://github.com/cpocar/taro-demo-app && cd taro-demo-app
yarn
yarn dev:h5

期望结果

pages/[a|b|c] /index 页面中的 usePageScroll useReachBottom 均触发

实际结果

pages/[a|b|c] /index 页面中的 usePageScroll useReachBottom 均不触发

环境信息

$ taro info
👽 Taro v3.0.13


  Taro CLI 3.0.13 environment info:
    System:
      OS: macOS 10.15.6
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.11.0 - /usr/local/bin/node
      Yarn: 1.22.5 - /usr/local/bin/yarn
      npm: 6.14.8 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.0.13 => 3.0.13 
      @tarojs/components: 3.0.13 => 3.0.13 
      @tarojs/mini-runner: 3.0.13 => 3.0.13 
      @tarojs/react: 3.0.13 => 3.0.13 
      @tarojs/runtime: 3.0.13 => 3.0.13 
      @tarojs/taro: 3.0.13 => 3.0.13 
      @tarojs/webpack-runner: 3.0.13 => 3.0.13 
      babel-preset-taro: 3.0.13 => 3.0.13 
      eslint-config-taro: 3.0.13 => 3.0.13 
      react: 16.13.1 => 16.13.1 
    npmGlobalPackages:
      typescript: 3.7.4

补充信息

发现注释掉app.config.ts中的tabBar 配置后可以正常触发各页面的 usePageScroll useReachBottom , 猜想是tabbar导致的, Taro 3.0.9 至3.0.13 貌似均有这个问题

@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Sep 27, 2020
@IMSupperkaka
Copy link

3.0.16依然存在问题

@zhaoguoweiLLHC
Copy link
Contributor

我也遇到这个问题,最后用scrollview 代替了。

@ZakaryCode ZakaryCode self-assigned this Jan 13, 2021
@Chen-jj Chen-jj linked a pull request Jan 14, 2021 that will close this issue
6 tasks
@Chen-jj Chen-jj added this to the 3.0.24 milestone Jan 14, 2021
@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants