Skip to content

Commit

Permalink
Reverted the append at first feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhijitkr committed Sep 3, 2023
1 parent 5bd4d93 commit 86d58e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ function addItemToUI(itemId, item, checked) {
li.classList.add('myCheck');
}

li.insertAdjacentElement('afterbegin', checkbox);
li.insertAdjacentElement('afterbegin', label);
ul.insertAdjacentElement('afterbegin', li);
li.appendChild(checkbox);
li.appendChild(label);
ul.appendChild(li);

// Apply animation to the newly added
li.classList.add('animation');
Expand Down

0 comments on commit 86d58e8

Please sign in to comment.