enables un-select in the component itself

This commit is contained in:
tina
2018-09-21 15:23:13 +02:00
parent 9c2509af3c
commit 33efc654d7
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export default class Desire extends Component {
<SelectTabGroup
buttons={desireRadioProps}
active={this.state.currentValue}
onSelect={val => val === this.state.currentValue ? this.setState({ currentValue: null }) : this.setState({ currentValue: val })}
onSelect={val => this.setState({ currentValue: val })}
/>
</SymptomSection>
</ScrollView>