Skip to content

Array field-level validation #160

Closed
final-form/react-final-form-arrays
#32
@bogdansoare

Description

@bogdansoare

I've tried implementing array field-level validation but I get the following error when I try to delete the last item in the array Cannot set a numeric property on an object.

I would like to validate the FieldArray and also each subfield in the array.

Link to the codesandox .

As a side note I've also took a look at final-form/final-form#35 but the proposed solution with record-level validation isn't working with the latest versions of the library https://codesandbox.io/s/2pnv1x052y
Also I find record-level validation much more repetitive and kind of unusable in a real app compared to having some functions for field-level validation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions