Skip to content

How to enable onHover behaviour for tooltip children (like in v4)? #880

@darya-talanina

Description

@darya-talanina

Hello.

I'm currently migrating a project to react-tooltip 5.3.2 from a 4.* version.
I struggle with keeping some existing behaviour detailed below. Would anyone be able to point to the right place in the docs / source code so that I have an idea of how to implement this?
Thank you.

  • there's a tooltip that appears after one of several elements is clicked (✅ works as expected with version 5.3.2 and TooltipWrapper)
  • inside the tooltip there's a button that changes appearance on hover (❌ doesn't work) and can be clicked (❌ doesn't work), see attached gifs for before/now behaviour. 👉 This is the most important part I need to implement. It was previously achieved with clickable prop if I remember correctly.

Now (v5):

mouseover-5.mp4

Before (v4):

mouseover-4.mp4
  • tooltip can be closed when re-clicking its anchor (✅ works as expected) and CANNOT be closed when clicking anywhere else (❌ doesn't work)
  • upon scrolling the page, the tooltip remains "in place" and doesn't get scrolled with the rest of the page (❌ doesn't work, setting data-scroll-hide={false} on TooltipWrapper doesn't seem to do anything)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions