-
Notifications
You must be signed in to change notification settings - Fork 376
Closed
Labels
Description
After upgrade when the value change the textInput lost focus, it seems that is rendering again the component in onChange event. (See Gif)
Component
<TextInput
value={this.state.addEgressHost.host}
type="text"
id="addEgressHost"
key="addEgressHost"
aria-describedby="add egress host"
name="addHost"
onChange={this.onAddHost}
isValid={this.state.validEgressHost}
/>OnAddHost method
onAddHost = (value: string, _) => {
const host = value.trim();
this.setState({
addEgressHost: {
host: host
},
validEgressHost: isServerHostValid(host)
});
};