aboutsummaryrefslogtreecommitdiff
path: root/src/ToDo.jsx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ToDo.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ToDo.jsx b/src/ToDo.jsx
index 522d3f7..569c8f4 100644
--- a/src/ToDo.jsx
+++ b/src/ToDo.jsx
@@ -108,7 +108,7 @@ export function NewToDo() {
className="form-check-input"
type="checkbox"
id="new-todo-done"
- onChange={(e) =>
+ onClick={(e) =>
set_new_done(e.target.checked)
}
/>
@@ -351,7 +351,7 @@ export function ListToDos() {
className="form-check-input"
type="checkbox"
id="edit-todo-done"
- onChange={(e) =>
+ onClick={(e) =>
set_edit_done(e.target.checked)
}
checked={edit_done}