Skip to content
Snippets Groups Projects
Unverified Commit 4f078bc3 authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Custom expression editor: hide error on the correction attempt (#19516)

parent 0af13ab4
No related merge requests found
......@@ -307,7 +307,7 @@ export default class ExpressionEditorTextfield extends React.Component {
};
handleExpressionChange(source) {
this.setState({ source });
this.setState({ source, errorMessage: null });
if (this.props.onBlankChange) {
this.props.onBlankChange(source.length === 0);
}
......@@ -400,7 +400,7 @@ export default class ExpressionEditorTextfield extends React.Component {
highlightedIndex={this.state.highlightedSuggestionIndex}
/>
</EditorContainer>
<ErrorMessage error={errorMessage} />
{!isFocused && <ErrorMessage error={errorMessage} />}
<HelpText helpText={this.state.helpText} width={this.props.width} />
</React.Fragment>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment