Skip to content

Commit 61473b5

Browse files
committed
fix: removed keyboard height setting from hide event
1 parent 1f4cac3 commit 61473b5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/hooks/useKeyboard.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@ export const useKeyboard = () => {
5959
return;
6060
}
6161
keyboardHeight.value =
62-
state === KEYBOARD_STATE.SHOWN
63-
? height
64-
: height === 0
65-
? keyboardHeight.value
66-
: height;
62+
state === KEYBOARD_STATE.SHOWN ? height : keyboardHeight.value;
6763
keyboardAnimationDuration.value = duration;
6864
keyboardAnimationEasing.value = easing;
6965
keyboardState.value = state;

0 commit comments

Comments
 (0)