From af3932c16b487e1f9b4975dacb8fc63d43f0d571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Fri, 19 May 2023 15:34:07 -0600 Subject: Renamed multiple HTML elements. ID collision problem. --- src/ToDo.jsx | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/src/ToDo.jsx b/src/ToDo.jsx index f502689..ecc074b 100644 --- a/src/ToDo.jsx +++ b/src/ToDo.jsx @@ -54,10 +54,7 @@ export function NewToDo() { >
-
+
Add a new to do
- +
@@ -103,7 +100,7 @@ export function NewToDo() { name="new-todo-due-date" placeholder="Due date" /> -
@@ -112,15 +109,14 @@ export function NewToDo() { set_new_done(e.target.checked) } /> @@ -128,7 +124,7 @@ export function NewToDo() {
-
@@ -236,7 +232,7 @@ export function ListToDos() { className="form-check-input" type="checkbox" checked={item.done} - id="flexCheckChecked" + id={"list-todo-done-" + item.id} onChange={(e) => dispatch( change_done({ @@ -325,7 +321,7 @@ export function ListToDos() { value={edit_id} disabled /> - +
- +
@@ -351,7 +347,7 @@ export function ListToDos() { placeholder="Due date" value={edit_due_date} /> -
@@ -360,8 +356,7 @@ export function ListToDos() { set_edit_done(e.target.checked) } @@ -369,7 +364,7 @@ export function ListToDos() { /> @@ -377,7 +372,7 @@ export function ListToDos() {
-
-- cgit v1.2.3