Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(md): fix scroll to bottom on focus (#38)

Seamus080d16a9ca35
diff --git a/js/app/packages/block-md/component/MarkdownEditor.tsx b/js/app/packages/block-md/component/MarkdownEditor.tsx
index fceddfcdbb..1db43cd71d 100644
--- a/js/app/packages/block-md/component/MarkdownEditor.tsx
+++ b/js/app/packages/block-md/component/MarkdownEditor.tsx
@@ -665,7 +665,7 @@ export function MarkdownEditor() {
autoRegister(
registerRootEventListener(editor, 'focusin', (e) => {
e.preventDefault();
- editor.focus();
+ editor.focus(undefined, {defaultSelection: 'rootStart'});
})
);