Skip to content

Commit

Permalink
change default mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ruberino committed Jan 7, 2025
1 parent 9947d57 commit 8e0c9fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ const Refero = (props: ReferoProps): JSX.Element | null => {
const methods = useForm({
defaultValues: defualtVals,
shouldFocusError: false,
mode: 'onChange',
mode: 'onTouched',
reValidateMode: 'onChange',
criteriaMode: 'all',
...(useFormProps !== undefined && { ...useFormProps }),

Expand Down

0 comments on commit 8e0c9fd

Please sign in to comment.