#Issue with checkbox functionality
4 messages · Page 1 of 1 (latest)
Try inserting console.log(index) between the current line 25 and 26, and then try using the checkbox. This will give you a big clue as to what is going on here!
Check this scrim to see the working todo app:
https://scrimba.com/scrim/co23f4426bd8187a32f94865b
Here I have added a check to see if the item with the matching value property was found in the priorTodo array, and I have also added a value attribute to the checkboxes that is bound to the value property of the items in the list. This allows the handleCheckboxClick function to correctly identify the item to update when a checkbox is clicked.
Thanks, made some changes and fixed it.