react-portal-tooltip
react-portal-tooltip copied to clipboard
possible race condition when hovering on the next element/parent
Salut! Awesome lib filling exactly my needs, thanks for sharing.
A bug: I have 3 buttons on top of each other, with a bit of space between them.
Basically it's 3 times this example:
const button = <span>Hover me to display the tooltip</span>
return (
<StatefulToolTip parent={ button }>
Stateful Tooltip content here!
</StatefulToolTip>
)
Here is what happen when I'm quickly hovering above them: http://www.offirmo.net/assets/share/2018-07-31_17-53-16.mp4
May be related to https://github.com/romainberger/react-portal-tooltip/issues/39
Precision: I'm using StatefulToolTip
- tried changing the timeout = no effect
- tried giving a different group to each tooltip = no effect
We devs are always complaining but sometimes it works...
I got a successful setup using ToolTip and not StatefulToolTip. I have to manage some state myself though, so this bug report still holds.
However, it works! https://www.online-adventur.es/apps/the-boring-rpg/index.html (bottom right -> inventory then hover on the equipment)
Thanks a LOT for sharing this lib!
🙇
@Offirmo Sorry I didn't have the chance to check this out before. Glad you resolved your issue!
Cool little game there! Gonna leave this open since, as you said, stateful tooltip still has that issue.