diff --git a/public/app/features/explore/QueryField.tsx b/public/app/features/explore/QueryField.tsx index 97ff0958d56..58d860f54ad 100644 --- a/public/app/features/explore/QueryField.tsx +++ b/public/app/features/explore/QueryField.tsx @@ -151,6 +151,9 @@ export class QueryField extends React.PureComponent { + const { onQueryChange } = this.props; + if (onQueryChange) { + onQueryChange(Plain.serialize(this.state.value)); + } + }; + executeOnQueryChangeAndExecuteQueries = () => { // Send text change to parent const { onQueryChange, onExecuteQuery } = this.props;