diff --git a/src/main/resources/static/js/list/ShoppingCategory.js b/src/main/resources/static/js/list/ShoppingCategory.js index 7a4bcea..345b5ee 100644 --- a/src/main/resources/static/js/list/ShoppingCategory.js +++ b/src/main/resources/static/js/list/ShoppingCategory.js @@ -15,6 +15,7 @@ export class ShoppingCategory { const span = document.createElement("span"); const deleteCategoryButton = document.createElement("button"); const deleteAllItemsCheckbox = document.createElement("input"); + const innerUl = document.createElement("ul"); li.id = this.categoryID; li.classList.add("category"); @@ -29,6 +30,7 @@ export class ShoppingCategory { li.appendChild(span); li.appendChild(deleteCategoryButton); li.appendChild(deleteAllItemsCheckbox); + li.appendChild(innerUl); return li; }