Skip to content

CustomSelectControl: Support generic props type #63984

@meteorlxy

Description

@meteorlxy

What problem does this address?

Currently, the CustomSelectControl component is not generic. In the following example, the option.foo property could not be inferred correctly in the onChange callback:

image

By making the props generic, ts could infer the selectedItem type correctly:

image

What is your proposed solution?

I'll create a PR to help implement it

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions