react-portal-tooltip icon indicating copy to clipboard operation
react-portal-tooltip copied to clipboard

possible race condition when hovering on the next element/parent

Open Offirmo opened this issue 7 years ago • 4 comments

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

Offirmo avatar Jul 31 '18 08:07 Offirmo

Precision: I'm using StatefulToolTip

  • tried changing the timeout = no effect
  • tried giving a different group to each tooltip = no effect

Offirmo avatar Jul 31 '18 08:07 Offirmo

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 avatar Aug 30 '18 05:08 Offirmo

🙇

Offirmo avatar Aug 30 '18 05:08 Offirmo

@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.

Redmega avatar Aug 31 '18 00:08 Redmega