Skip to content

Inner Dialog Closes when a Menu Item is clicked from a Menu(Dropdown) React #1449

Answered by RobinMalfait
arunavo4 asked this question in Help
Discussion options

You must be logged in to vote

Hey! Thank you for your question!
Much appreciated! 🙏

Once you click a Menu.Item, the Menu will close. This means that it will also close the actual Dialog since it is rendered inside the Menu.Item.

If you don't want that, I would recommend to move the Dialog outside of the Menu.Item, but open it by setting the open state from the Menu.Item.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@arunavo4
Comment options

Answer selected by arunavo4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1447 on May 13, 2022 23:23.