#Using `clickOutside` on a controlled Popover

4 messages · Page 1 of 1 (latest)

silver nimbus
#

I think I need my Popover to be controlled so it can be closed when clicking the button at the bottom. But then the Popover no longer closes on click outside. Is there an event I can register in clickOutsideEvents maybe ?

spare notch
upbeat vortex
#

onClose should respond to click outside and escape key

#

So just toggle off your controlled opened state from the onClose callback