From 3eae718204a2c609640b12040031f3f6e084501b Mon Sep 17 00:00:00 2001 From: Tim Aldinger Date: Fri, 2 Oct 2026 13:25:02 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix,=20dass=20Gegenst=C3=A4nde=20die=20mit?= =?UTF-8?q?=20done=20markiert=20sind=20nicht=20gel=C3=B6scht=20werden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit isDone wurde nicht zuvor definiert --- src/ShoppingListItem.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ShoppingListItem.js b/src/ShoppingListItem.js index 762090a..bd8ad2a 100644 --- a/src/ShoppingListItem.js +++ b/src/ShoppingListItem.js @@ -4,6 +4,7 @@ export class ShoppingListItem { this.itemName = itemName; this.itemAmount = itemAmount; this.isEditing = false; + this.isDone = false; this.remove = false; this.onChange = onChange; } @@ -76,6 +77,7 @@ export class ShoppingListItem { doneButton.setAttribute("type", "checkbox"); doneButton.addEventListener("change", () => { + this.isDone = true; li.classList.toggle("displayedList__item--checked"); });