Skip to content

Allow props to be passed down to native select in FormSelect component #441

@cg-mmirca

Description

@cg-mmirca

Is your feature request related to a problem? Please describe.
I want to use the HTML disabled property for the native select rendered by FormSelect.

Describe the solution you'd like
I would like to have a property similar to inputProps found at the FormInput. This would allow me to pass down all the properties I need to the native select element.

Describe alternatives you've considered
We could do a querySelector to obtain the HTML reference but I would be React-friendly.

Additional context
A suggestion would be to add "selectProps" property to the FormSelect component.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions