fix: sheet height on fullscreen behavior

This commit is contained in:
Mo Gorhom
2021-03-10 21:35:07 +00:00
parent 6e75ecf913
commit 8f35dc233b

View File

@@ -287,7 +287,9 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
}
if (keyboardBehavior === KEYBOARD_BEHAVIOR.fullScreen) {
return safeContainerHeight - topInset - safeHandleHeight;
return isExtendedByKeyboard.value
? safeContainerHeight - topInset - safeHandleHeight
: sheetHeight;
}
if (
@@ -893,7 +895,6 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
animatedPosition,
keyboardState,
keyboardHeight,
keyboardAnimationDuration,
animatedSheetHeight,
animatedSheetState,
scrollableContentOffsetY,