Skip to content
Discussion options

You must be logged in to vote

@ensidialabs by default DropdownMenu.Content will close when DropdownMenu.Item is selected, because you have composed Dialog.Content inside DropdownMenu.Content it will be immediately unmounted on item selection.

To fix this you need to move Dialog.Content outside of DropdownMenu.Content

https://codesandbox.io/s/dropdownmenu-dialog-nszobq?file=/src/App.js

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@joaom00
Comment options

@Natchii59
Comment options

@jd-carroll
Comment options

@uncvrd
Comment options

@girithodu
Comment options

Answer selected by ensidialabs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
8 participants