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

[Bug]: When disabled prop on Tooltip changes to become true, the tooltip stays there for a little moment #771

Open
CarolineSabourin-Jean opened this issue Mar 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@CarolineSabourin-Jean
Copy link
Contributor

Contact Details

No response

What happened?

With the code:

const tooltipContent =  string or undefined or null; // Based on some conditions that can change

return <Tooltip content={tooltipContent} disabled={!tooltipContent}>{content}</Tooltip>;

When the disabled prop changes to become true, here's is what is happening:
bug

There's an empty tooltip when the disabled prop changes to true.

Component

Tooltip

Component Version

3.5.2

Which browsers are you seeing the problem on?

No response

Mobile Device

No response

Relevant log output

No response

@CarolineSabourin-Jean CarolineSabourin-Jean added the bug Something isn't working label Mar 13, 2024
@vicky-comeau
Copy link
Collaborator

I'm not sure I see the issue? Judging by the clip, the tooltip doesn't show once you disable it, which is when opening the menu I'm guessing.

@CarolineSabourin-Jean
Copy link
Contributor Author

Here is a little screenshot of the gif when the problem occurs:
image

The problem can be seen for a very small amount of time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants