Skip to content

Commit

Permalink
clearing callout when typing in query
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Li <lnse@amazon.com>
  • Loading branch information
sejli committed Mar 27, 2024
1 parent 95efadd commit 32962f1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,10 @@ export const QueryAssistInput: React.FC<React.PropsWithChildren<Props>> = (props
}
disabled={loading}
value={props.nlqInput}
onChange={(e) => props.setNlqInput(e.target.value)}
onChange={(e) => {
props.setNlqInput(e.target.value);
setCallOut(null);

Check warning on line 346 in public/components/event_analytics/explorer/query_assist/input.tsx

View check run for this annotation

Codecov / codecov/patch

public/components/event_analytics/explorer/query_assist/input.tsx#L344-L346

Added lines #L344 - L346 were not covered by tests
}}
onKeyDown={(e) => {
// listen to enter key manually. the cursor jumps to CodeEditor with EuiForm's onSubmit
if (e.key === 'Enter') runAndSummarize();
Expand Down

0 comments on commit 32962f1

Please sign in to comment.