Skip to content

ABackTop组件type属性值设置不生效 #7008

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

Closed
1 task
web-zhangbo opened this issue Oct 8, 2023 · 2 comments
Closed
1 task

ABackTop组件type属性值设置不生效 #7008

web-zhangbo opened this issue Oct 8, 2023 · 2 comments
Labels

Comments

@web-zhangbo
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.0.1

Environment

[email protected]

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1::打开复现链接
2:滚动鼠标。出现悬浮按钮
3:观察悬浮按钮

What is expected?

按钮正确渲染为主题色

What is actually happening?

按钮渲染为默认颜色


antdv版本为4.0.3,

原因应该是ABackTop组件接受的props:type并未传递/穿透 给 AFloatButton组件,导致底层组件无法接受到type值
参考源码:
components/float-button/BackTop.tsx 33 (移除ABackTop组件props.type 声明)
或 components/float-button/BackTop.tsx 120 (为AFloatButton组件添加props.type值)
image
image

@selicens
Copy link
Member

selicens commented Oct 8, 2023

我来瞅瞅

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants