feat: apply if state is active, onEnter callback dont working
This commit is contained in:
parent
6d0836189c
commit
fed165161d
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue