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

FloatButton 置顶按钮展现逻辑有错误 #38858

Closed
ghost opened this issue Nov 22, 2022 · 2 comments
Closed

FloatButton 置顶按钮展现逻辑有错误 #38858

ghost opened this issue Nov 22, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 22, 2022

Reproduction link

https://ant.design/components/float-button-cn

Steps to reproduce

  1. 进入https://ant.design/components/float-button-cn

  2. 找到『回到顶部』的介绍

  3. 下拉一段距离

  4. 可以观察到置顶按钮是不展现的
    image

  5. 将窗口上滑到顶部,按钮展现(正常逻辑应该是视窗在顶部时,置顶按钮是隐藏的)
    image

What is expected?

  1. 下拉时按钮展现
  2. 窗口置顶时,按钮隐藏

What is actually happening?

  1. 下拉时按钮隐藏
    image

  2. 窗口置顶时,按钮展现
    image

Environment Info
antd 5.0.0
React react
System OSX Monterey 12.1 M1
Browser Chrome 107.0.5304.110
@ghost ghost changed the title FloatButton 置顶按钮展现逻辑有错误,下拉到一定调度 FloatButton 置顶按钮展现逻辑有错误 Nov 22, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 22, 2022

You may look for issues:

  1. 50% Floating Button #12738

🤖 By issues-similarity-analysis

@afc163
Copy link
Member

afc163 commented Nov 22, 2022

Fixed in #38770

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant