Skip to content

Commit 6a011f2

Browse files
committed
[example-hooks] Fix checkbox not being checked
1 parent d332fca commit 6a011f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

example-hooks/ts/components/TodoListFooter.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ const TodoListFooter = (props: Props) => {
6666
{numRemainingTodos === 1 ? "" : "s"} left
6767
</span>
6868
<label>
69-
<input type="checkbox" value={props.append} onChange={props.onSetAppend}/>
69+
<input
70+
type="checkbox"
71+
checked={props.append}
72+
onChange={props.onSetAppend}
73+
/>
7074
Append
7175
</label>
7276
{numCompletedTodos > 0 && (

0 commit comments

Comments
 (0)