mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
editor: scroll to top on note change
This commit is contained in:
@@ -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");
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user