Skip to content

Commit b51ea61

Browse files
committed
fix(#2418): updated nullability check for highestDetentPosition
1 parent e0d3a94 commit b51ea61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/bottomSheet/BottomSheet.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
202202
const { containerHeight } = animatedLayoutState.get();
203203
const { highestDetentPosition } = animatedDetentsState.get();
204204

205-
if (!highestDetentPosition) {
205+
if (highestDetentPosition === undefined) {
206206
return INITIAL_LAYOUT_VALUE;
207207
}
208208

@@ -1801,6 +1801,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
18011801
scrollableStatus: animatedScrollableStatus,
18021802
layoutState: animatedLayoutState,
18031803
detentsState: animatedDetentsState,
1804+
sheetHeight: animatedSheetHeight,
18041805
isLayoutCalculated,
18051806
}}
18061807
/> */}

0 commit comments

Comments
 (0)