We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3cb9724 + e43398e commit 5308bc0Copy full SHA for 5308bc0
src/useKeyboard.ts
@@ -25,7 +25,9 @@ export function useKeyboard() {
25
}
26
const handleKeyboardDidHide: KeyboardEventListener = (e) => {
27
setShown(false)
28
- setCoordinates({start: e.startCoordinates, end: e.endCoordinates})
+ if (e) {
29
+ setCoordinates({start: e.startCoordinates, end: e.endCoordinates})
30
+ }
31
setKeyboardHeight(0)
32
33
0 commit comments