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 for using radio inputs without radio group #1344

Closed
elieven opened this issue Jan 18, 2025 · 1 comment
Closed

Support for using radio inputs without radio group #1344

elieven opened this issue Jan 18, 2025 · 1 comment
Labels
component: radio group This is the name of the generic UI component, not the React module! component: radio This is the name of the generic UI component, not the React module!

Comments

@elieven
Copy link

elieven commented Jan 18, 2025

Feature Request

Summary

The radio input should work without needing to be wrapped in the RadioGroup component. This would align its behavior with how radio inputs work in vanilla HTML/JS.

Examples in Other Libraries

Vanilla HTML/JS behavior.

Motivation

There are use cases where more complex inputs or forms cannot have radio inputs nested inside a RadioGroup. For example, the current scenario involves an editable table with rows containing multiple number/text inputs and one radio input per row. Unless the entire table is wrapped in a RadioGroup, the radio inputs will not function as expected. Wrapping the entire table is highly unsemantic, whereas vanilla radio inputs work without any special wrapping, as they are naturally grouped by the name attribute.

Simple diagram of the mentioned component:

Image

@github-actions github-actions bot added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 18, 2025
@elieven
Copy link
Author

elieven commented Jan 18, 2025

Now that I think about it this might more accurately be classified as a bug...

@elieven elieven closed this as completed Jan 19, 2025
@github-actions github-actions bot removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 19, 2025
@zannager zannager added component: radio group This is the name of the generic UI component, not the React module! component: radio This is the name of the generic UI component, not the React module! labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: radio group This is the name of the generic UI component, not the React module! component: radio This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

2 participants