mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
clear query field value before setting value (#142943)
* clear query field value before setting value
This commit is contained in:
parent
24b7807d79
commit
e552f3be5c
2 changed files with 28 additions and 20 deletions
|
@ -192,6 +192,7 @@ export const EsQueryExpression: React.FC<
|
|||
<EuiSpacer size="s" />
|
||||
<EuiFormRow
|
||||
id="queryEditor"
|
||||
data-test-subj="queryJsonEditor"
|
||||
fullWidth
|
||||
isInvalid={errors.esQuery.length > 0}
|
||||
error={errors.esQuery}
|
||||
|
@ -208,7 +209,6 @@ export const EsQueryExpression: React.FC<
|
|||
languageId="xjson"
|
||||
width="100%"
|
||||
height="200px"
|
||||
data-test-subj="queryJsonEditor"
|
||||
value={xJson}
|
||||
onChange={(xjson: string) => {
|
||||
setXJson(xjson);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue