Procházet zdrojové kódy

Fix new recipe ingredient count input

Lee Morgan před 5 roky
rodič
revize
ab1c401c12

+ 1 - 1
views/dashboardPage/bundle.js

@@ -1962,7 +1962,7 @@ let newRecipe = {
             }
         }
 
-        document.getElementById("ingredientCount").onclick = ()=>{this.changeRecipeCount()};
+        document.getElementById("ingredientCount").onchange = ()=>{this.changeRecipeCount()};
         document.getElementById("submitNewRecipe").onclick = ()=>{this.submit(Recipe)};
     },
 

+ 1 - 1
views/dashboardPage/js/newRecipe.js

@@ -20,7 +20,7 @@ let newRecipe = {
             }
         }
 
-        document.getElementById("ingredientCount").onclick = ()=>{this.changeRecipeCount()};
+        document.getElementById("ingredientCount").onchange = ()=>{this.changeRecipeCount()};
         document.getElementById("submitNewRecipe").onclick = ()=>{this.submit(Recipe)};
     },