fix(native): a field low on a screen scrolls above the keyboard when it comes up

This commit is contained in:
Maurice
2026-11-08 12:07:57 +01:00
parent c7f144d3ff
commit 9b1bf89382
4 changed files with 73 additions and 1 deletions
+2
View File
@@ -7,6 +7,7 @@ import { useSettingsStore } from '../store/settingsStore';
import { isEffectivelyOffline } from '../sync/networkMode';
import { checkAppUpdate, loadNativeCapabilities } from './capabilities';
import { installNativeGeolocation } from './geolocation';
import { keepFieldInView } from './keepFieldInView';
import { keepOfflineShellFresh } from './offlineShell';
import { isNativeApp, isNativeIos } from './platform';
import { openPushTarget, startNativePush } from './push';
@@ -61,6 +62,7 @@ export function startNativeApp(): void {
if (isNativeIos()) {
// The "‹ › Done" strip above the keyboard is a web form's, not an app's.
void Keyboard.setAccessoryBarVisible({ isVisible: false });
keepFieldInView(Keyboard);
window.setTimeout(() => {
if (isEffectivelyOffline()) return;
// Not refreshed this time is no harm: the next launch tries again. An app