Skip to content

Array field main label #246

Open
Open
@Ducica

Description

@Ducica

There is a problem with ArrayField top level label (main label).

<FieldLabel htmlFor={fieldPath} icon={labelIcon} label={label} />

As there actually isn't an input to which the htmlfor corresponds, it is raising errors in the console

image

This seems to be semantically incorrect way to do things. Probably it would be best if it was wrapped in a <fieldset> tag and <legend> was used instead of the FieldLabel. If you think this is something worth changing, I could look into making a PR for it. Please let me know.

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