diff --git a/frontend/src/components/pure/ms-minder-editor/script/runtime/jumping.ts b/frontend/src/components/pure/ms-minder-editor/script/runtime/jumping.ts index 89ac38822e..8220b51fe6 100644 --- a/frontend/src/components/pure/ms-minder-editor/script/runtime/jumping.ts +++ b/frontend/src/components/pure/ms-minder-editor/script/runtime/jumping.ts @@ -90,7 +90,9 @@ function JumpingRuntime(this: IJumpingRuntime): void { if (e.type === 'keydown') { if (e.code === 'Enter') { e.preventDefault(); - return fsm.jump('normal', 'input-commit'); + return setTimeout(() => { + fsm.jump('normal', 'input-commit'); + }, 0); } if (e.code === 'Escape') { e.preventDefault();