Closed hichemfantar closed 1 year ago
Agree. It took me some time to implement a custom hook to inspect a mouse event when is clicked outside of the poper to close it...
react-popper
(and @floating-ui/react-dom)
only handles positioning
Use Floating UI Interactions to handle all types of interactions, including outside clicks
A property to specify whether the dropdown should close on click outside or not would be very useful.