diff --git a/kafka-ui-react-app/src/components/Schemas/New/New.tsx b/kafka-ui-react-app/src/components/Schemas/New/New.tsx index 0d9d171b1f..1aa843d6b5 100644 --- a/kafka-ui-react-app/src/components/Schemas/New/New.tsx +++ b/kafka-ui-react-app/src/components/Schemas/New/New.tsx @@ -32,12 +32,12 @@ const New: React.FC = () => { const { clusterName } = useAppParams(); const navigate = useNavigate(); const dispatch = useAppDispatch(); - const methods = useForm(); + const methods = useForm({ mode: 'onChange' }); const { register, handleSubmit, control, - formState: { isDirty, isSubmitting, errors }, + formState: { isDirty, isSubmitting, errors, isValid }, } = methods; const onSubmit = async ({ @@ -99,15 +99,15 @@ const New: React.FC = () => {
Schema Type * ( + render={({ field: { name, onChange, value } }) => (