React-tooltip: Link not clickable in tooltip

Created on 16 Sep 2017  路  5Comments  路  Source: wwayne/react-tooltip

Hey guys, in the screenshot you can see my React tooltip being used. I managed everything nicely.
But if I pass this inside the tooltip, you can see it there. It's not clickable. Yeah w3 that desperate I was -> I passed normal
<div className={css.link}> <a href="https://www.w3schools.com">Visit W3Schools</a> </div>
Can it be that it's not supported or rather my css imports could be breaking that? TY :)

screen shot 2017-09-13 at 12 25 07 am

Most helpful comment

@dankonino just fixed by css

.__react_component_tooltip { pointer-events: auto !important; }

All 5 comments

@dankonino did you solve this issue? I'm trying to fix it too

Nah we just made decision that link will be displayed somewhere else. Didn鈥檛 hack it at all

@dankonino just fixed by css

.__react_component_tooltip { pointer-events: auto !important; }

@phuochau wow man thanks will do it also ! :)

You can also add a class to the ReactTooltip component that adds the pointer-events: auto style.

So in your css

.react-tooltip-clickable-link {
  pointer-events: auto
}

And your component

<ReactTooltip
  html={true}
  className="react-tooltip-clickable-link"
/>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

lovetann picture lovetann  路  3Comments

antofa picture antofa  路  4Comments

rothwelljeff picture rothwelljeff  路  3Comments

oran1248 picture oran1248  路  3Comments

Ericky14 picture Ericky14  路  3Comments