Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: SelectComponent form id #4212

Open
2 tasks done
entropos opened this issue Jul 8, 2024 · 1 comment
Open
2 tasks done

[bug]: SelectComponent form id #4212

entropos opened this issue Jul 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@entropos
Copy link

entropos commented Jul 8, 2024

Describe the bug

In forms the for from label and the id have to be matched. WIth the select component the id is locatet in the button, not in the select. How to transfer it to the select?

Affected component/components

Select

How to reproduce

install a form and add a select

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

bun, chrome

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@entropos entropos added the bug Something isn't working label Jul 8, 2024
@lukaszsamson
Copy link

lukaszsamson commented Jul 8, 2024

I may be facing the same issue. I need to attach the Select component to an external form but it does not expose form prop

<form id={my_form}>...</form>
...
<Select form={my_form}>...</Select>

This works with vanilla HTML select and also works with shadcn Input

Related to radix-ui/primitives#2975

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants