Open danutibe07 opened 1 year ago
// removing tasks toDoList.addEventListener('click', (e) => { if (e.target.closest('.btn-ellipsis')) { const ellipsisBtn = e.target.closest('.btn-ellipsis'); const trashBtn = ellipsisBtn.closest('.ellipsis').nextElementSibling; ellipsisBtn.classList.add('hidden'); trashBtn.classList.remove('hidden'); } else if (e.target.closest('.btn-trash')) { const trashBtn = e.target.closest('.btn-trash'); removeTask(trashBtn.dataset.index); } });
♻️ Changes Required 👏 Great implementation of the Todo List