Skip to content

Commit

Permalink
Merge pull request #2 from paulrostorp/fix-simultaneous-keyboard-dism…
Browse files Browse the repository at this point in the history
…iss-and-sheet-close-issue

fix keyboard state change conflicting with sheet close
  • Loading branch information
meishuu authored Dec 21, 2022
2 parents 81d395b + 8c1f5f6 commit 8ad0b4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/bottomSheet/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,11 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
*/
(Platform.OS === 'android' &&
keyboardBehavior === KEYBOARD_BEHAVIOR.interactive &&
android_keyboardInputMode === KEYBOARD_INPUT_MODE.adjustResize)
android_keyboardInputMode === KEYBOARD_INPUT_MODE.adjustResize) ||
/**
* if the sheet is closing, then exit then method
*/
animatedNextPositionIndex.value == -1
) {
animatedKeyboardHeightInContainer.value = 0;
return;
Expand Down

0 comments on commit 8ad0b4c

Please sign in to comment.