diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx index c67804bf6e..37dd509863 100644 --- a/src/components/Dialog/index.tsx +++ b/src/components/Dialog/index.tsx @@ -274,14 +274,6 @@ export const ScrollableInner = forwardRef( const {nativeSnapPoint, disableDrag, setDisableDrag, type} = useDialogContext() - if (type === 'alert') { - return ( - - {header} - {children} - - ) - } const isAtMaxSnapPoint = nativeSnapPoint === BottomSheetSnapPoint.Full const insets = useSafeAreaInsets() const [keyboardHeight, setKeyboardHeight] = useState(() => @@ -294,6 +286,15 @@ export const ScrollableInner = forwardRef( useOnKeyboard('keyboardDidShow', keyboardEventHandler) useOnKeyboard('keyboardDidHide', keyboardEventHandler) + if (type === 'alert') { + return ( + + {header} + {children} + + ) + } + const onScroll = (e: NativeSyntheticEvent) => { if (!IS_ANDROID) { return