diff --git a/components/cycle-day/symptoms/temperature.js b/components/cycle-day/symptoms/temperature.js index 6d3a372..9a5efc2 100644 --- a/components/cycle-day/symptoms/temperature.js +++ b/components/cycle-day/symptoms/temperature.js @@ -70,21 +70,25 @@ export default class Temp extends Component { { + if (isNaN(Number(val))) return this.setState({ integer: val }) }} keyboardType='numeric' value={this.state.integer} - onBlur={this.checkRange} + maxLength={2} /> . { + if (isNaN(Number(val))) return this.setState({ fractional: val }) }} keyboardType='numeric' value={this.state.fractional} onBlur={this.checkRange} + maxLength={2} + autoFocus={true} />