Commit 21838d0a authored by Steven's avatar Steven

chore: fix editor autocomplete

parent 52ebfd70
...@@ -176,8 +176,7 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef< ...@@ -176,8 +176,7 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef<
insertText = `${Number(number) + 1}. `; insertText = `${Number(number) + 1}. `;
} }
if (insertText) { if (insertText) {
editorActions.insertText(`\n${insertText}`); editorActions.insertText(insertText);
event.preventDefault();
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment