diff --git a/src/web/HTMLIngredient.mjs b/src/web/HTMLIngredient.mjs index 88fd9781..d1d050cb 100755 --- a/src/web/HTMLIngredient.mjs +++ b/src/web/HTMLIngredient.mjs @@ -105,15 +105,15 @@ class HTMLIngredient { case "boolean": html += `
- +
`; break; @@ -243,6 +243,8 @@ class HTMLIngredient { input = link.parentNode.parentNode.parentNode.querySelector("input"); input.value = link.getAttribute("value"); + const evt = new Event("change"); + input.dispatchEvent(evt); this.manager.recipe.ingChange(); } diff --git a/src/web/html/index.html b/src/web/html/index.html index d717fc99..33ddb9b7 100755 --- a/src/web/html/index.html +++ b/src/web/html/index.html @@ -446,42 +446,42 @@ -
+
-
+
-
+
-
+
-
+
-
+