Skip to content

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

editor: scroll to top on note change

ammarahm-ed509dc4b54162
diff --git a/packages/editor-mobile/src/components/editor.tsx b/packages/editor-mobile/src/components/editor.tsx
index ac450d20e..705c64ff0 100644
--- a/packages/editor-mobile/src/components/editor.tsx
+++ b/packages/editor-mobile/src/components/editor.tsx
@@ -119,6 +119,10 @@ const Tiptap = ({
const update = useCallback(() => {
setTick((tick) => tick + 1);
+ containerRef.current?.scrollTo?.({
+ left: 0,
+ top: 0
+ });
globalThis.editorController.setTitlePlaceholder("Note title");
}, []);