Browse Source

+validate doesnt work in build

ilya_shyian 2 years ago
parent
commit
e6f84dd8b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/admin/AdminGoodPage/GoodForm.js

+ 1 - 1
src/components/admin/AdminGoodPage/GoodForm.js

@@ -58,7 +58,7 @@ export const GoodForm = ({
             amount: 0,
         },
         validationSchema: goodSchema,
-        validateOnMount: true,
+        validateOnBlur: false,
         validateOnChange: true,
         onSubmit: () => {
             let goodToSave = {};