diff --git a/examples/todomvc-react/src/Todo.tsx b/examples/todomvc-react/src/Todo.tsx index 7b228d0888..655d0a5086 100644 --- a/examples/todomvc-react/src/Todo.tsx +++ b/examples/todomvc-react/src/Todo.tsx @@ -39,7 +39,12 @@ export const todoMachine = createMachine({ } }, editing: { - entry: 'focusInput', + entry: [ + assign({ + initialTitle: ({ context }) => context.title + }), + { type: 'focusInput' } + ], on: { blur: { target: 'reading',