Skip to content

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

Merged
rkaraivanov merged 3 commits intomasterfrom
rkaraivanov/radio-group-enhancement
Jun 19, 2024
Merged

feat(radio-group): Set radio properties through the group#1262
rkaraivanov merged 3 commits intomasterfrom
rkaraivanov/radio-group-enhancement

Conversation

@rkaraivanov
Copy link
Copy Markdown
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
Copy Markdown

wnvko commented Jun 18, 2024

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

@rkaraivanov
Copy link
Copy Markdown
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
@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