Compare commits
5 commits
master
...
issue/3398
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7b639d8332 | ||
![]() |
a2af8a1e05 | ||
![]() |
29fab2ac7b | ||
![]() |
9b95852855 | ||
![]() |
5b2cf7d01e |
2 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ const ClusterConfigForm: React.FC<ClusterConfigFormProps> = ({
|
|||
const onReset = () => methods.reset();
|
||||
|
||||
const onValidate = async () => {
|
||||
await trigger();
|
||||
await trigger(undefined, { shouldFocus: true });
|
||||
if (!methods.formState.isValid) return;
|
||||
disableForm();
|
||||
const data = methods.getValues();
|
||||
|
|
|
@ -20,7 +20,7 @@ const sslSchema = lazy((value) => {
|
|||
is: (v: string) => !!v,
|
||||
then: (schema) => schema.required('required field'),
|
||||
}),
|
||||
password: string(),
|
||||
password: string().required('required field'),
|
||||
});
|
||||
}
|
||||
return mixed().optional();
|
||||
|
|
Loading…
Add table
Reference in a new issue