How can I close a Popover after it opens some other content? #5717
Unanswered
GustavoSmith
asked this question in
Q&A
Replies: 1 comment 1 reply
-
If you want to display the inside one on top of the outside one, I think you can just up the z-index of the inside one (i.e. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
screen-capture.webm
I'm using Tailwind and React Aria Components. I wanted to display a Modal triggered by a Button inside a Popover, but when I open the Modal, the Popover doesn't close (and in this case, it can overlap). Using "aria-hidden:hidden" on the Popover solves this, but I was wondering if there's a better approach. I've tried controlling the state of the Modal and the Popover, changing first the state of one and then the other, but couldn't make it work.
This is my code:
I couldn't provide a Codesandbox showing this because I couldn't make Tailwind work there, if it helps please let me know. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions