Skip to content
Snippets Groups Projects
Commit b3ace768 authored by Bl00dyMarie's avatar Bl00dyMarie
Browse files

Text input is autofocussed only when someone just checked the "Other" checkbox :)

parent a64bfbcd
No related branches found
No related tags found
No related merge requests found
......@@ -116,13 +116,16 @@ export default class Sex extends Component {
<CheckBox
value={this.state.other}
onValueChange={(val) => {
this.setState({other: val})
this.setState({
other: val,
focusTextArea: true
})
}}
/>
</View>
{ this.state.other &&
<TextInput
autoFocus={true}
autoFocus={this.state.focusTextArea}
multiline={true}
placeholder="Enter"
value={this.state.note}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment