diff options
Diffstat (limited to 'app/list.js')
-rw-r--r-- | app/list.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/list.js b/app/list.js index 2469dad..bb658e5 100644 --- a/app/list.js +++ b/app/list.js @@ -41,15 +41,11 @@ form.addEventListener('submit', (submit) => { function createElement(item) { const newItem = document.createElement('li'); newItem.classList.add('item'); - newItem.dataset.id = item.id; - newItem.textContent += item.name; newItem.appendChild(checkboxButton(item.id)); - - newItem.appendChild(editButton(item.id)); - + newItem.appendChild(editButton(item.id)); newItem.appendChild(deleteButton(item.id)); list.appendChild(newItem); |