Focus input field on IPATable close

This commit is contained in:
Robbie Antenesse 2017-12-10 14:30:22 -07:00
parent 0c4824e430
commit d9467cfe82
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ export class IPAField extends Component {
return ( return (
<IPATable <IPATable
value={ this.state.value } value={ this.state.value }
close={ () => this.setState({ doShowTable: false }) } close={ () => this.setState({ doShowTable: false }, () => this.field.focus()) }
update={ (newValue) => this.setState({ value: newValue }, this.field.focus()) } /> update={ (newValue) => this.setState({ value: newValue }, this.field.focus()) } />
); );
} }