chore: fix editor autocomplete
This commit is contained in:
parent
52ebfd703c
commit
21838d0aae
1 changed files with 1 additions and 2 deletions
|
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue