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 set visible to undefined tooltip shows #37153

Closed
ah-yu opened this issue Aug 19, 2022 · 2 comments
Closed

tooltip set visible to undefined tooltip shows #37153

ah-yu opened this issue Aug 19, 2022 · 2 comments
Labels
help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request. Inactive 🧶 Low Priority This issue may not fit our design or its not common requirement. We may not do this.

Comments

@ah-yu
Copy link

ah-yu commented Aug 19, 2022

Reproduction link

Edit on CodeSandbox

Steps to reproduce

鼠标hover到文字上,点击(visible设为false),把鼠标移出去,再把鼠标移到文字上,再点击按钮(visible设为undefined),tooltip显示出来了

Screen.Recording.2022-08-19.at.10.48.43.AM.mov

What is expected?

tooltip不显示

What is actually happening?

tooltip显示了

Environment Info
antd 4.22.6
React 16.14.0
System macos
Browser chrome
@zombieJ
Copy link
Member

zombieJ commented Aug 21, 2022

受控 与 非受控 切换并不保证其行为正确性,还是建议始终保持 受控 或者 非受控。

@zombieJ zombieJ added help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request. 🧶 Low Priority This issue may not fit our design or its not common requirement. We may not do this. labels Aug 21, 2022
@github-actions

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request. Inactive 🧶 Low Priority This issue may not fit our design or its not common requirement. We may not do this.
Projects
None yet
Development

No branches or pull requests

3 participants