Skip to content

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

@CarolineSabourin-Jean

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions