-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
bugSomething isn't workingSomething isn't working
Description
the error dont appear in error message
not sure if this is an issue but cant figure out an other way
const { fields } = useFieldArray({
name: nameForm,
...methods.control
});
fields.map((field: FieldValues, index: number) => {
const id = '${nameForm}.${index}.checkbox'
return (
<input
{...methods.register(id, { required: required })}
/>
</div>
);
})
<ErrorMessage
errors={errors}
name={nameForm}
render={({ message }) => {
return <div className="text-red-500 text-sm">{message}</div>
}}
/>
rodsouto, tombunn-fn, ZuBB and emjaksa
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working