Skip to content

Commit

Permalink
Merge pull request #1440 from KleeGroup/fix-radio
Browse files Browse the repository at this point in the history
Fixing radio display in firefox
  • Loading branch information
c3dr0x authored Sep 7, 2017
2 parents 275b8b6 + 64d1e57 commit d1b0721
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/input/radio/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ class Radio extends Component {
this.setState({ isChecked: newProps.value });
}

componentDidMount() {
this.updateCheckedClass();
}

componentDidUpdate() {
this.updateCheckedClass();
}

updateCheckedClass(){
const { inputMdl } = this.refs;
const { isChecked } = this.state;
if (inputMdl) {
Expand Down

0 comments on commit d1b0721

Please sign in to comment.