You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(app-admin): call onClose callback when dialog is closed
The useDialogs hook was not triggering the onClose callback when dialogs
were dismissed. The closeDialog function in DialogsContext only removed
the dialog from state without executing the user-provided onClose callback.
This fix retrieves the dialog from state before removal and calls the
onClose callback if it exists, ensuring proper cleanup and event handling
when dialogs are closed through any method (cancel button, accept button,
or programmatic closure).
0 commit comments