react-tippy icon indicating copy to clipboard operation
react-tippy copied to clipboard

Changing some settings dynamically doesn't work

Open Kerumen opened this issue 7 years ago • 2 comments

I tried to update the trigger prop after the first render, and it doesn't work. The tooltip appears very broken.

Reproduction: https://codesandbox.io/s/l2nqy531vq

It does the same for the theme and the interactive props.

Kerumen avatar Nov 03 '17 10:11 Kerumen

same here

fdsfdsfhsdjf4444 avatar Apr 22 '20 21:04 fdsfdsfhsdjf4444

You can create your own wrapper for react-tippy with key property, where key will be ${theme}${interactive}. Every time when it changes it will recreate your component with new props

vanya2h avatar Mar 06 '21 15:03 vanya2h