Skip to content

TextField error prop #272

Open
Open
@Ducica

Description

@Ducica

Is your feature request related to a problem? Please describe.

The TextFIeld component takes the error prop, that it then uses inside its computations, thus making it impossible to override the entire error prop getting passed down, to semantic ui and making it impossible to bypass the logic provided inside the component

Image

This can lead various issues, one currently experienced. If this input is part of the array field, and you can have a top level error message, say it is metadata.titles and "missing data for required field", on level of the entire array field.

The text field would then result in having an error attached next to it which shows just the first letter of the error string.

Image

It would be good to have control of how the error is being passed down please. We could make a PR if necessary and if you agree that this is a relevant problem.

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