Skip to content

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

mobile: fix back handler removed in useEffect

ammarahm-ed61767c2fb2b1
diff --git a/apps/mobile/app/screens/editor/tiptap/use-editor-events.ts b/apps/mobile/app/screens/editor/tiptap/use-editor-events.ts
index 0b9cd85fc..1642e514d 100644
--- a/apps/mobile/app/screens/editor/tiptap/use-editor-events.ts
+++ b/apps/mobile/app/screens/editor/tiptap/use-editor-events.ts
@@ -267,7 +267,7 @@ export const useEditorEvents = (
}
return () => {
- if (handleBack.current) {
+ if (handleBack.current && DDS.isTab) {
handleBack.current.remove();
}
};