From 67427c678a8b79bcd0dbb919644afcf1ec7ec78c Mon Sep 17 00:00:00 2001 From: Mohammed Saud Date: Thu, 7 Jul 2022 19:36:48 +0530 Subject: [PATCH] run validation with updated resource values --- src/shared/components/formik-fields/ResourceLimitField.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/formik-fields/ResourceLimitField.tsx b/src/shared/components/formik-fields/ResourceLimitField.tsx index 7815a4af7..ac1ddc3a7 100644 --- a/src/shared/components/formik-fields/ResourceLimitField.tsx +++ b/src/shared/components/formik-fields/ResourceLimitField.tsx @@ -31,7 +31,7 @@ const ResourceLimitField: React.FC = ({ { - setFieldValue(props.name, val.value); + setTimeout(() => setFieldValue(props.name, val.value)); setFieldTouched(props.name, true); setFieldValue(unitName, val.unit); }}