shadcn-ui/ui

[feat]: Preserve type for onValueChange in Select component.

AbhinasRegmi opened this issue · 1 comments

Feature description

<SelectItem value={something <- this has sometype}>something</ SelectItem>

OnClick events to select items the value I get from onValueChange((i) => {//here i is of type string})

How to make it so the type provided in value will be the type of param in onValueChange.

Affected component/components

Select

Additional Context

No response

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues and PRs

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.