Skip to content

Recommendations for nesting/chaining dialogs? #6438

Answered by snowystinger
janvorwerk asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like you've hooked up the close1 function to the close button of the 2nd dialog?

We don't typically recommend nesting like this however. Typically it's better to close the Popup, then open the Dialog. See an example here https://react-spectrum.adobe.com/react-spectrum/DialogContainer.html#dialog-triggered-by-a-menu-item

Or with RAC https://react-spectrum.adobe.com/react-aria/index.html on the main example, you can access a Table row's action menu, then click the "Edit" button to launch into a modal Dialog.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@janvorwerk
Comment options

@snowystinger
Comment options

@janvorwerk
Comment options

@snowystinger
Comment options

Answer selected by janvorwerk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants