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

feat(radio-group): Set radio properties through the group #1262

Merged
merged 3 commits into from
Jun 19, 2024

Conversation

rkaraivanov
Copy link
Member

Added name and value properties on the igc-radio-group. Developers can now control the checked state of the underlying igc-radio components through the enclosing group.

Closes #315

Added `name` and `value` properties on the igc-radio-group.
Developers can now control the checked state of the underlying
igc-radio components through the enclosing group.

Closes #315
@wnvko
Copy link

wnvko commented Jun 18, 2024

LGTM
Hopefully no one will set the radio group name to 0 of false.

@rkaraivanov
Copy link
Member Author

LGTM Hopefully no one will set the radio group name to 0 of false.

This shouldn't be an issue in normal scenarios. If it is bound as an attribute both 0 and false are coerced to truthy string values. If you try to set them through a property assignment on a string property that is just a developer being sloppy.

@rkaraivanov rkaraivanov removed the request for review from damyanpetev June 19, 2024 12:10
@rkaraivanov rkaraivanov merged commit 2319204 into master Jun 19, 2024
5 checks passed
@rkaraivanov rkaraivanov deleted the rkaraivanov/radio-group-enhancement branch June 19, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot bind radio group to a value
3 participants