Skip to content

Commit 87174a9

Browse files
committed
Attempt to fix BottomSheet crash on Motorola devices
1 parent 874d4aa commit 87174a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/components/ui/AppBottomSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const AppBottomSheet = ({
2828
const { height: windowHeight } = useWindowDimensions();
2929
const insets = useSafeAreaInsets();
3030
const sheetHeight = Math.max(windowHeight - Math.max(insets.top, 16) - 12, 320);
31-
const resolvedDetents = detents ?? [0, sheetHeight];
31+
const resolvedDetents: Detent[] = detents ?? [0, "content"];
3232
const openIndex = resolvedDetents.length - 1;
3333
const shouldConstrainContentHeight = detents === undefined;
3434

0 commit comments

Comments
 (0)