|
|
@ -360,14 +360,6 @@ export function InformationSheet({ |
|
|
: getDefaultKeyboardHeight(); |
|
|
: getDefaultKeyboardHeight(); |
|
|
keyboardHeight = Math.max(keyboardHeight, expectedHeight); |
|
|
keyboardHeight = Math.max(keyboardHeight, expectedHeight); |
|
|
setLift(keyboardHeight); |
|
|
setLift(keyboardHeight); |
|
|
setTimeout(() => { |
|
|
|
|
|
if (typeof (e.target as any)?.scrollIntoView === "function") { |
|
|
|
|
|
(e.target as any).scrollIntoView({ |
|
|
|
|
|
behavior: "smooth", |
|
|
|
|
|
block: "nearest", |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}, 100); |
|
|
|
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
@ -378,7 +370,7 @@ export function InformationSheet({ |
|
|
sheetRef.current?.contains(active) && isKeyboardInputTarget(active) |
|
|
sheetRef.current?.contains(active) && isKeyboardInputTarget(active) |
|
|
? (active as HTMLElement) |
|
|
? (active as HTMLElement) |
|
|
: null; |
|
|
: null; |
|
|
if (!activeInput && (viewPaddingsBridge.getConfig().keyboardHeight || 0) === 0) { |
|
|
|
|
|
|
|
|
if (!activeInput) { |
|
|
keyboardVisible = false; |
|
|
keyboardVisible = false; |
|
|
keyboardHeight = 0; |
|
|
keyboardHeight = 0; |
|
|
setLift(0); |
|
|
setLift(0); |
|
|
@ -445,7 +437,7 @@ export function InformationSheet({ |
|
|
const content = ( |
|
|
const content = ( |
|
|
<div |
|
|
<div |
|
|
className={[ |
|
|
className={[ |
|
|
"fixed inset-0 z-50 flex items-end justify-center overflow-y-auto", |
|
|
|
|
|
|
|
|
"fixed inset-0 z-50 flex items-end justify-center overflow-hidden", |
|
|
isClosing ? "flutter-scrim-exit" : "flutter-scrim", |
|
|
isClosing ? "flutter-scrim-exit" : "flutter-scrim", |
|
|
] |
|
|
] |
|
|
.filter(Boolean) |
|
|
.filter(Boolean) |
|
|
|