-
-
Notifications
You must be signed in to change notification settings - Fork 155
GLASGOW | May-2025 | Taras Mykytiuk | Module-Data-Groups | Sprint_3 | Todo_List #693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
GLASGOW | May-2025 | Taras Mykytiuk | Module-Data-Groups | Sprint_3 | Todo_List #693
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work on the todo list task so far - there seems to be an issue with delete. I have not reviewed the reading list - did you mean to commit that here, or should that have been on a separate branch / pull request? If so can you remove those files from this PR please
Sprint-3/todo-list/script.js
Outdated
// Advanced challenge: Write a fucntion that checks the todos in the todo list and deletes the completed ones (we can check which ones are completed by seeing if they have the line-through styling applied or not). | ||
function deleteAllCompletedTodos() { | ||
// Write your code here... | ||
} | ||
const activeListElements = listDom.children; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I have multiple completed list items, when I use the delete all function, it only removes about half of all the elements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have fixed this by changing loop direction.
674a778
to
4eb5fdf
Compare
Great! That works. This sprint task is complete now. Well done. |
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Page has ability to add items to list, mark them as completed and delete.
Questions
Ask any questions you have for your reviewer.