-
I want to build a dropdown with items that open a dialog – but obviously these are two different types of buttons. I mainly want to use a RadixDialog.Trigger to make use of the focus management: closing the dialog should re-focus the DropdownMenu.Item (which opened the dialog). Is there any clever way to build this with Radix's components or do I have to care about the focus by myself in this case? 🤔 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Is what you are looking for? https://codesandbox.io/s/bold-haibt-ubu3my?file=/App.js |
Beta Was this translation helpful? Give feedback.
-
You can compose the |
Beta Was this translation helpful? Give feedback.
Is what you are looking for? https://codesandbox.io/s/bold-haibt-ubu3my?file=/App.js