Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide event to Dialog onClose callback. #768

Closed
wants to merge 1 commit into from

Conversation

ChadBurggraf
Copy link

This will give Dialog consumers additional context
when deciding whether to prevent closing the dialog.

An example for where this is useful is when an action is
triggered from a dialog that results in a transient notification
(e.g., a snackbar) that includes dismiss and/or action buttons.
Clicking on a button inside the notification should not close the
dialog, even if the notification itself is not a child of the
dialog in the DOM.

This also makes scenarios like #621 easier.

This will give Dialog consumers additional context
when deciding whether to prevent closing the dialog.

An example for where this is useful is when an action is
triggered from a dialog that results in a transient notification
(e.g., a snackbar) that includes dismiss and/or action buttons.
Clicking on a button inside the notification should not close the
dialog, even if the notification itself is not a child of the
dialog in the DOM.
@vercel
Copy link

vercel bot commented Aug 26, 2021

@ChadBurggraf is attempting to deploy a commit to the Tailwind Labs Team on Vercel.

A member of the Team first needs to authorize it.

@ChadBurggraf
Copy link
Author

Please let me know if you'd prefer that I open this against develop.

@RobinMalfait RobinMalfait deleted the branch tailwindlabs:main November 8, 2021 10:18
@RobinMalfait RobinMalfait reopened this Nov 8, 2021
@RobinMalfait RobinMalfait changed the base branch from main-0 to develop November 8, 2021 11:46
@RigoOnRails
Copy link

@RobinMalfait Hi! Any way we can get this merged? Would be really helpful. Thank you!

@RobinMalfait RobinMalfait deleted the branch tailwindlabs:main January 17, 2022 13:03
@RobinMalfait RobinMalfait reopened this Jan 17, 2022
@RobinMalfait RobinMalfait changed the base branch from develop to main January 17, 2022 13:06
@RobinMalfait
Copy link
Member

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

The issue you are describing should already be fixed so going to close this for now. Thank you for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants