diff options
author | Hailey <me@haileyok.com> | 2024-04-08 09:09:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 09:09:40 -0700 |
commit | 731d94b973d6b71a10dd68c903ed65acef764cac (patch) | |
tree | 3ebbcdcf7247965e174aad0bcc5ace66e74b60f6 | |
parent | a1ac84687f0a18e82b69155720881778c858316d (diff) | |
download | voidsky-731d94b973d6b71a10dd68c903ed65acef764cac.tar.zst |
Implement back button fix for all places in the app (#3434)
-rw-r--r-- | src/components/Dialog/context.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Dialog/context.ts b/src/components/Dialog/context.ts index 859f8edd7..df8bbb081 100644 --- a/src/components/Dialog/context.ts +++ b/src/components/Dialog/context.ts @@ -39,7 +39,8 @@ export function useDialogControl(): DialogOuterProps['control'] { control.current.open() }, close: cb => { - control.current.close(cb) + control.current.close() + cb?.() }, }), [id, control], |