is-checked wird gesetzt bei shopping-item wenn geahkt
This commit is contained in:
1 parent
97f2d91323
commit
e84b02f8d5
1 file changed
+1
@@ -203,6 +203,7 @@ function init() {
|
||||
document.querySelector(".displayedList").addEventListener("change", (e) => {
|
||||
if (e.target.matches(".item__checkboxDone")) {
|
||||
const item = e.target.closest("li");
|
||||
e.target.closest("shopping-item").setAttribute("is-checked", e.target.checked);
|
||||
api.editItem(item.dataset.id, { isDone: e.target.checked });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user