Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix keyboard opens on app launch if locked note is opened in current tab

Ammar Ahmed67cd2e6504f6
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.ts
index 27aaf092f..a6515d33b 100644
--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts
+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts
@@ -677,7 +677,7 @@ export const useEditor = (
state.current.currentlyEditing = true;
if (!tabLocked) {
await loadContent(item);
- } else {
+ } else if (fluidTabsRef.current?.page() === "editor") {
commands.focus(tabId!);
}