Skip to content

[bug] Not rendering any error using ValidationError Component #18

Description

@reqyo

Is there an existing issue for this?

  • I have searched the existing issues

Formspree React Version

2.4.0

Formspree Core Version

2.8.0

Current Behavior

No error is shown.

Expected Behavior

A validation error should be shown when using the component and there is an error is state.errors.

Steps To Reproduce

Forced an error by providing an invalid form id, passing the state.errors prop to the ValidationErrors component, form.errors having an error within the object, but you will not see anything displayed.

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

Just a note I was using Vite/Astro and CRA to test this, however in the vite/astro version I was using npm and in the React version I was using yarn

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions