Skip to content

Commit cec6f16

Browse files
committed
fix: alert dialog overlay
1 parent 2c767d2 commit cec6f16

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

example/storybook/stories/components/composites/AlertDialog/Transition.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const Example = () => {
1515
leastDestructiveRef={cancelRef}
1616
onClose={onClose}
1717
isOpen={isOpen}
18+
isCentered
1819
>
1920
<AlertDialog.Content>
2021
<AlertDialog.CloseButton />

src/components/composites/AlertDialog/AlertDialog.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const AlertDialog = (
7070
onRequestClose={handleClose}
7171
isKeyboardDismissable={isKeyboardDismissable}
7272
useRNModalOnAndroid
73+
unmountOnExit
7374
>
7475
<AlertDialogContext.Provider
7576
value={{

0 commit comments

Comments
 (0)