tleunen / react-mdl

React Components for Material Design Lite
https://tleunen.github.io/react-mdl/
MIT License
1.76k stars 255 forks source link

fixes #459 #492

Closed pauloFernandes closed 7 years ago

pauloFernandes commented 7 years ago

fixes #459

Apparently, there was an attribute for radioGroups called defaultChecked, when it had an onChange event related. Using this attribute, the radioGroup's internal state changes, but it doesn't reflect this change in the view (the default selected radio option still selected).

In this PR, I've removed the defaultChecked from RadioGroup, keeping only checked, which is really used in Radio Component.

codecov-io commented 7 years ago

Codecov Report

Merging #492 into master will decrease coverage by <.01%. The diff coverage is 100%.

Impacted Files Coverage Δ
src/RadioGroup.js 100% <ø> (ø) :arrow_up:
src/__tests__/RadioGroup-test.js 97.5% <100%> (ø) :arrow_up: