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

Support form input prop name #111

Open
smblee opened this issue Aug 5, 2022 · 1 comment · May be fixed by #121
Open

Support form input prop name #111

smblee opened this issue Aug 5, 2022 · 1 comment · May be fixed by #121

Comments

@smblee
Copy link

smblee commented Aug 5, 2022

For all the form related components (radio group, switch) the react version supports the prop name for use in form element. Is there a way to get this working somehow - or does this need to be supported by the lib?

@jacktho
Copy link

jacktho commented Dec 16, 2022

@smblee Until #121 gets sorted, you can manually do it yourself. Add a hidden input like so: <input type="hidden" {name} {value} />

Make sure value is bound to both that input and the appropriate component like RadioGroup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants