diff options
author | lucashemi <lucasxberger@gmail.com> | 2023-01-26 14:45:14 -0300 |
---|---|---|
committer | lucashemi <lucasxberger@gmail.com> | 2023-01-26 14:45:14 -0300 |
commit | 3e18114591e676d808510a5f1ee05afd67365991 (patch) | |
tree | bee9c1af7bc9701f39857cb9fe8c27507d310be6 /app/list.js | |
parent | 110967526d14068387cf1bc8d4e78efd505b5831 (diff) |
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); |