diff --git a/src/components/TodoItem/TodoItem.tsx b/src/components/TodoItem/TodoItem.tsx index 9ce748f3a..58d0b8f1f 100644 --- a/src/components/TodoItem/TodoItem.tsx +++ b/src/components/TodoItem/TodoItem.tsx @@ -36,7 +36,9 @@ export const TodoItem = ({ todo: { id, title, completed } }: Props) => { const handleOnBlur = useCallback( (event: React.FormEvent) => { - handleSubmit(event); + setTimeout(() => { + handleSubmit(event); + }, 0); }, [handleSubmit], );