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

hope dialog add complete close event #3128

Open
xiefenga opened this issue Sep 19, 2024 · 1 comment
Open

hope dialog add complete close event #3128

xiefenga opened this issue Sep 19, 2024 · 1 comment

Comments

@xiefenga
Copy link

Feature request

Overview

Is it possible to add a fully closed event to the dialog component?

Examples in other libraries

such as afterClose in antd, onCloseComplete in chakra-ui

Who does this impact? Who is this for?

I hope to make @radix-ui/react-dialog work well with nice-modal-react

Some people prefer to use programmatic methods to drive dialogs.

Additional context

@chrishoermann
Copy link

this should be the onCloseAutoFocus event handler on the Dialog.Content. This event handler is called when the focus moves back to the trigger after the close animation is complete. So I think this could fullfill your needs.

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

No branches or pull requests

2 participants