Explorar o código

+validate doesnt work in build

ilya_shyian %!s(int64=2) %!d(string=hai) anos
pai
achega
ef433bb5de
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/components/admin/AdminGoodPage/GoodForm.js

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

@@ -58,8 +58,7 @@ export const GoodForm = ({
             amount: 0,
         },
         validationSchema: goodSchema,
-        validateOnBlur: false,
-        validateOnChange: true,
+        validateOnSubmit: false,
         onSubmit: () => {
             let goodToSave = {};
             !isNew && good?._id && (goodToSave._id = good._id);