Skip to content

Commit 82e6f6b

Browse files
fix(web): adding todo item now clears input.
1 parent 48fe424 commit 82e6f6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/src/features/todos/todo-list/TodoList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const AddItem = (props: { onAddItem: (id: string) => void }) => {
2424
<form onSubmit={handleAddItem}>
2525
<StyledInput>
2626
<Input
27+
value={value}
2728
className="input"
2829
placeholder="Add Task"
2930
onChange={(e) => setValue(e.target.value)}

0 commit comments

Comments
 (0)