Skip to content

Commit

Permalink
Implement back button fix for all places in the app (#3434)
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok authored Apr 8, 2024
1 parent a1ac846 commit 731d94b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Dialog/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export function useDialogControl(): DialogOuterProps['control'] {
control.current.open()
},
close: cb => {
control.current.close(cb)
control.current.close()
cb?.()
},
}),
[id, control],
Expand Down

0 comments on commit 731d94b

Please sign in to comment.