A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix pin input hide behind keyboard on session expiry sheet (#3624)
Ammar Ahmed2b917c7eca55
diff --git a/apps/mobile/app/components/auth/session-expired.js b/apps/mobile/app/components/auth/session-expired.jsindex 19de19bea..6966f8933 100644--- a/apps/mobile/app/components/auth/session-expired.js+++ b/apps/mobile/app/components/auth/session-expired.js@@ -142,9 +142,9 @@ export const SessionExpired = () => {passwordInputRef.current?.focus();setFocused(true);}}+ enableSheetKeyboardHandler={true}visible={true}>- <SheetProvider context="two_factor_verify" /><Viewstyle={{width: focused ? "100%" : "99.9%",@@ -237,6 +237,8 @@ export const SessionExpired = () => {</View><Toast context="local" /><Dialog context="session_expiry" />++ <SheetProvider context="two_factor_verify" /></BaseDialog>));diff --git a/apps/mobile/app/components/dialog/base-dialog.js b/apps/mobile/app/components/dialog/base-dialog.jsindex 4f8a99274..0b0f2ff2f 100644--- a/apps/mobile/app/components/dialog/base-dialog.js+++ b/apps/mobile/app/components/dialog/base-dialog.js@@ -51,7 +51,8 @@ const BaseDialog = ({bounce = true,closeOnTouch = true,useSafeArea = true,- avoidKeyboardResize = false+ avoidKeyboardResize = false,+ enableSheetKeyboardHandler = false}) => {const floating = useIsFloatingKeyboard();const appState = useAppState();@@ -103,7 +104,9 @@ const BaseDialog = ({if (lockEvents.current) return;if (onShow) {onShow();- useSettingStore.getState().setSheetKeyboardHandler(false);+ if (!enableSheetKeyboardHandler) {+ useSettingStore.getState().setSheetKeyboardHandler(false);+ }}}}animationType={animation}