mirror of
https://github.com/zadam/trilium.git
synced 2026-02-22 21:54:39 +01:00
fix(code): scrolling to end triggers on all splits
This commit is contained in:
parent
d8275e7ea8
commit
e4432e6feb
@ -180,7 +180,8 @@ export function CodeEditor({ parentComponent, ntxId, containerRef: externalConta
|
||||
resolve(refToJQuerySelector(containerRef));
|
||||
});
|
||||
|
||||
useTriliumEvent("scrollToEnd", () => {
|
||||
useTriliumEvent("scrollToEnd", ({ ntxId: eventNtxId }) => {
|
||||
if (eventNtxId !== ntxId) return;
|
||||
const editor = codeEditorRef.current;
|
||||
if (!editor) return;
|
||||
editor.scrollToEnd();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user