Skip to content

Commit

Permalink
chore: fix editor autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed May 20, 2024
1 parent 52ebfd7 commit 2155ca5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/components/MemoEditor/Editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef<
insertText = `${Number(number) + 1}. `;
}
if (insertText) {
editorActions.insertText(`\n${insertText}`);
event.preventDefault();
editorActions.insertText(insertText);
}
}
};
Expand Down

0 comments on commit 2155ca5

Please sign in to comment.