Closed JesusTheHun closed 10 months ago
After some investigations, v0.10.1
was working properly. The bug has been introduced by v0.11.0
This is also true for onShow
handler, which is called on each render. Even if you set show={true}
directly to Float
component, the handler will be called every time.
Fixed on v0.11.3
Use Version
@floating-ui/core
: v1.0.0@floating-ui/dom
: v1.0.0Describe the bug The
onHide
callback is called every time the component is rendered instead of when the dropdown is closed.To Reproduce https://stackblitz.com/edit/github-tvfv3k?file=src%2Fpages%2Fcombobox.tsx
Expected behavior
onHide
should be only called when the dropdown is closed