Skip to content

Commit

Permalink
Minor fix in todomvc-react example. (#4830)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x8b authored Apr 9, 2024
1 parent 3a57f4c commit 74410d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/todomvc-react/src/Todo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ export const todoMachine = createMachine({
}
},
editing: {
entry: 'focusInput',
entry: [
assign({
initialTitle: ({ context }) => context.title
}),
{ type: 'focusInput' }
],
on: {
blur: {
target: 'reading',
Expand Down

0 comments on commit 74410d7

Please sign in to comment.