浏览代码

Fix new recipe ingredient count input

Lee Morgan 5 年之前
父节点
当前提交
ab1c401c12
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      views/dashboardPage/bundle.js
  2. 1 1
      views/dashboardPage/js/newRecipe.js

+ 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)};
     },