gilbarbara / react-floater

Advanced tooltips for React
https://codesandbox.io/s/github/gilbarbara/react-floater/tree/main/demo
MIT License
220 stars 37 forks source link

Floater ignores rapid changes in 'open' prop #55

Closed dropbeardan closed 2 years ago

dropbeardan commented 5 years ago

🐛 Bug Report

When rapidly changing the open prop, i.e. toggling the Floater when it is opening/closing, the Floater will ignore the change in prop.

To Reproduce

1) Make a floater attach to a button controlled by the open prop 2) Double-Click the target button to open it and close it while it is still opening

Expected behavior

The target button should be closed after the second click, especially since the Floater accepts the prop state of open: false despite not being closed (since it maintains its own internal state of opened/closed).

gilbarbara commented 2 years ago

Fixed in 0.8.0