Skip to content

Commit 531b036

Browse files
authored
Update SimpleRadioButton.js
1 parent da7204d commit 531b036

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)