See validation error: react-hook-form tries to validate rowgithub icon on mobile website is not clickable#3, while there are now only 2 rows. Expected behaviour When removing a row in a field array, the validation shouldn't consider removed rows. This works fine if the validation uses buil...
Each question contains: Atextfield (primitive type). Anoptionsarray, where each option contains: Avideosarray. Atextfield. Eachquestion is saved individually, and after saving, I want to reset its dirty statewithout affecting the rest of the form. Example Form Data: [ {"options": [ {"vide...
Sufficient fixes can be made to your code in this scenario because theNotescomponent is protected byv-if="notes.length"in the Parent. The component will only be generated whennotesis not an empty array. This is not enough in many cases! The lifecycle hook and associated function/hook are ex...
However when I try to reset the form withapiValuesstructure I find that RHF fails to use the values in the nested structure (i.e. the employees structure from the API is not used at all) and instead when I dogetValueson the field in question I see an empty array, i.e. thedefaultV...
The validation messages need to be flattened and should map to your field names – for cases where you have an array of fields, we recommend you name thesenames.0.firstName,names.1.firstName, etc... Note that we have a flattening helper for Django Rest Framework (DRF) underparse.django...
noisyscanner I've got the same error when I try to default yup schema with.getDefault() const schema = yup.object().shape({ bar: yup.string().required().default('foo') }) const initialValue = schema.getDefault() typescript 4.4.4 ...