Skip to content

Select component: Input inherits 'name' attribute #1984

@dpletiko

Description

@dpletiko

Select component wierd behaviour.

Setting the 'name' attribute to the Select component applies the same 'name' value to the generated Input element.

Submitting the form both select and input values are submitted.

Any reason why the input element inherits the select element 'name' attribute?

Thanks :)

Edit: (added img example)
Inspect element example below:
2023-10-05_19:19:46

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