From 67ab924e7001ee5a53a6182ac15c3cb41899e9fc Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Fri, 15 Dec 2023 11:39:47 -0500 Subject: [PATCH] :bug: Update validation method to address datepicker event firing (#1628) [[Regression][Migration wave] False error when clicking on a date picker for the first time on the create wizard](https://issues.redhat.com/browse/MTA-1871) Signed-off-by: ibolton336 --- .../pages/migration-waves/components/migration-wave-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/pages/migration-waves/components/migration-wave-form.tsx b/client/src/app/pages/migration-waves/components/migration-wave-form.tsx index 1c6902507..b67ad4d42 100644 --- a/client/src/app/pages/migration-waves/components/migration-wave-form.tsx +++ b/client/src/app/pages/migration-waves/components/migration-wave-form.tsx @@ -205,7 +205,7 @@ export const WaveForm: React.FC = ({ watch, trigger, } = useForm({ - mode: "all", + mode: "onChange", defaultValues: { name: migrationWave?.name || "", startDateStr: migrationWave?.startDate