From 7f2c6f09cb9e7bb4df98a8c853a0f1aa2e5e97f0 Mon Sep 17 00:00:00 2001 From: Edwin Tan Date: Wed, 6 Nov 2024 16:14:59 -0800 Subject: [PATCH] If a user selects a Model from the dropdown, do not show 'A CQL library model is required.' validation message. Only show validation message if the user clicks into dropdown, then clicks out of dropdown without select a dropdown value --- src/components/common/CreateNewLibraryDialog.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/common/CreateNewLibraryDialog.tsx b/src/components/common/CreateNewLibraryDialog.tsx index 5a3c87c..5c0e909 100644 --- a/src/components/common/CreateNewLibraryDialog.tsx +++ b/src/components/common/CreateNewLibraryDialog.tsx @@ -243,9 +243,6 @@ const CreateNewLibraryDialog: React.FC = ({ error={formik.touched.model && Boolean(formik.errors.model)} helperText={formik.touched.model && formik.errors.model} size="small" - onClose={() => { - setFieldTouched("model"); - }} options={modelOptions.map((modelKey) => { return (