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

Tooltip在Table的FilterIcon下不显示正确的title内容 #20049

Closed
ReganxZheng opened this issue Dec 3, 2019 · 1 comment · Fixed by #20053
Closed

Tooltip在Table的FilterIcon下不显示正确的title内容 #20049

ReganxZheng opened this issue Dec 3, 2019 · 1 comment · Fixed by #20053
Assignees

Comments

@ReganxZheng
Copy link

@ReganxZheng ReganxZheng commented Dec 3, 2019

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

https://codesandbox.io/s/infallible-ives-m1gik

What is expected?

Tooltip展示正确填入的title内容

What is actually happening?

Filter menu

Environment Info
antd 3.26.0
React 16.8
System MacOS
Browser Chrome
@hustKiwi

This comment has been minimized.

Copy link

@hustKiwi hustKiwi commented Dec 3, 2019

看起来是这行代码对上述逻辑有影响:https://github.com/ant-design/ant-design/blob/master/components/tooltip/index.tsx#L269

如果改下 title 和 overlay 的顺序,就应该默认用 title 覆盖 overlay 的取值:

overlay={title || overlay || ''}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.