Focus input field on IPATable close
This commit is contained in:
parent
0c4824e430
commit
d9467cfe82
|
@ -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()) } />
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue