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

[RFC][NI] Add readOnly property to checked property on radio-button #245

Merged
merged 3 commits into from
Sep 14, 2018

Conversation

AndreJoaquim
Copy link
Contributor

@AndreJoaquim AndreJoaquim commented May 2, 2018

Why?

The checked property of the radio-button shouldn't be changeable. This property is fully managed by the component. Any parent component is only allowed to change the groupValue property, triggering the checked computed.

Further improvements:

See issue #246

@asantos00
Copy link
Contributor

asantos00 commented May 2, 2018

All computed properties should be readonly by default, but this really enforces it. Btw, tests are failing :)

Good job :)

@AndreJoaquim
Copy link
Contributor Author

@asantos00 As you can see by the failing tests, sometimes it's better to be safe than sorry :D

@AndreJoaquim AndreJoaquim merged commit 452d7b7 into master Sep 14, 2018
@AndreJoaquim AndreJoaquim deleted the NI/add-ro-to-rb branch September 14, 2018 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants