ソースを参照

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