feat: apply if state is active, onEnter callback dont working

This commit is contained in:
DongjaJ 2024-10-15 16:03:21 +09:00
parent 6d0836189c
commit fed165161d

View file

@ -606,6 +606,10 @@ function TipTapEditor(props: TipTapEditorProps) {
const onEnterRef = useUpdatingRef(
(modifiers: InputModifiers) => {
if (active) {
return;
}
const json = editor.getJSON();
// Don't do anything if input box is empty