Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

What does feedback property do on Form.Input? #532

Description

@SalahAdDin

More than an issue this is a question:

I'm passing the formik validation errors and the API fetching errors as Form.Input error and feedback properties, no any problem till here.

The problem comes when I pass the feedback and it is not showed in the page:
Screen Capture_select-area_20200903003803

When there is a formik validation error, it is showed normally and the input is also styled as it requires:
Screen Capture_select-area_20200903003638
And It is because if there is an error, the input receives the is-invalid, and state-invalid classes are passed to the control group, while feedback just gets the text but does not change the form control style:
Screen Capture_select-area_20200903003845

So, in order to get also the server errors, we had to pass it feedback error also to the error property:
Screen Capture_select-area_20200903005111

So, finally, what is the idea of the feedback property?

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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