Open xiefenga opened 1 month ago
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.
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-uiWho 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