Commit 7b63913d by Hugo Häggmark Committed by Torkel Ödegaard

Explore: Adds logs highlighting in Explore on keypress (#16596)

Fixes: #16277
parent 75f9adf4
......@@ -151,6 +151,9 @@ export class QueryField extends React.PureComponent<QueryFieldProps, QueryFieldS
if (textChanged && invokeParentOnValueChanged) {
this.executeOnQueryChangeAndExecuteQueries();
}
if (textChanged && !invokeParentOnValueChanged) {
this.updateLogsHighlights();
}
}
});
......@@ -163,6 +166,13 @@ export class QueryField extends React.PureComponent<QueryFieldProps, QueryFieldS
}
};
updateLogsHighlights = () => {
const { onQueryChange } = this.props;
if (onQueryChange) {
onQueryChange(Plain.serialize(this.state.value));
}
};
executeOnQueryChangeAndExecuteQueries = () => {
// Send text change to parent
const { onQueryChange, onExecuteQuery } = this.props;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment