Skip to content

Commit e5a408c

Browse files
authored
Merge pull request #127 from Viveksmart93/master
Update SimpleRadioButton.js
2 parents da7204d + 531b036 commit e5a408c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/SimpleRadioButton.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ export default class RadioForm extends React.Component {
4444
this.props.onPress(this.props.radio_props[index], index)
4545
}
4646

47+
//This function is for clear the selection when we are using the library in multiple choice questions
48+
clearSelection(){
49+
this.setState({is_active_index:-1});
50+
}
51+
4752
_renderButton(obj, i) {
4853
return (
4954
<RadioButton

0 commit comments

Comments
 (0)