Skip to content

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

mobile: fix editor hidden when changing orientation from landscape to portrait

ammarahm-ed9888ad327c24
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor.ts b/apps/mobile/app/screens/editor/tiptap/use-editor.ts
index 6f34f0820..4b3d54cdb 100644
--- a/apps/mobile/app/screens/editor/tiptap/use-editor.ts
+++ b/apps/mobile/app/screens/editor/tiptap/use-editor.ts
@@ -368,6 +368,8 @@ export const useEditor = (
useEditorStore.getState().setReadonly(false);
} else {
if (!item.forced && currentNote.current?.id === item.id) return;
+ state.current.movedAway = false;
+ state.current.currentlyEditing = true;
isDefaultEditor && editorState.setCurrentlyEditingNote(item.id);
currentNote.current && (await reset(false, false));
await loadContent(item as NoteType);