Fix update state

This commit is contained in:
Laurent Nguyen
2020-12-04 12:53:41 +01:00
parent fc5ffeb7ca
commit 37c64c4a4d

View File

@@ -69,7 +69,7 @@ export class MongoQueryComponent extends React.Component<MongoQueryComponentProp
private onOutputTypeChange = (e: React.FormEvent<HTMLElement | HTMLInputElement>, option: IChoiceGroupOption): void => {
const outputType = option.key as OutputType;
this.setState({ outputType });
this.setState({ outputType }, () => this.onInputChange(this.props.inputValue));
};
private onInputChange = (text: string) => {