Unable to close overlay by clicking on trigger a second time #1820
-
Hello, thank you for the library 🙏 I would like assistance in solving this issue. I have a button trigger that opens a overlay using useOverlay and useOverlayPosition. When I click the button a second time, nothing happens. I would like the be able to close the overlay with a second click of the trigger AND by clicking off the overlay content. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey, I just took a look, I think you are just missing useOverlayTrigger as well, see our example here |
Beta Was this translation helpful? Give feedback.
Hey, I just took a look, I think you are just missing useOverlayTrigger as well, see our example here
https://react-spectrum.adobe.com/react-aria/useOverlayTrigger.html#example