shopping-item initalisiert
This commit is contained in:
1 parent
5e0b6d7477
commit
ad9fc0e02a
1 file changed
+2
@@ -1,3 +1,4 @@
|
||||
import { ShoppingItem } from "../../models/ShoppingItem.js";
|
||||
import { showError, initErrors } from "../../shared/error.js";
|
||||
import * as api from "./api/listAPI.js"
|
||||
import * as ui from "./frontend/listUI.js"
|
||||
@@ -165,6 +166,7 @@ function init() {
|
||||
|
||||
initErrors(document.querySelector(".nav"));
|
||||
|
||||
customElements.define("shopping-item", ShoppingItem);
|
||||
addCategoryForm.addEventListener("submit", (event) => {
|
||||
event.preventDefault();
|
||||
let formData = Object.fromEntries(new FormData(addCategoryForm));
|
||||
|
||||
Reference in new issue
Block a user