CloudWatch Logs: Fix query editor freezing (#63661)

This commit is contained in:
Isabella Siu 2023-02-23 11:50:48 -05:00 committed by GitHub
parent 2023203045
commit 22537bec2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,9 @@ export const CloudWatchLogsQueryField = (props: CloudWatchLogsQueryFieldProps) =
cleanText={cleanText}
placeholder="Enter a CloudWatch Logs Insights query (run with Shift+Enter)"
portalOrigin="cloudwatch"
// By default QueryField calls onChange if onBlur is not defined, this will trigger a rerender
// And slate will claim the focus, making it impossible to leave the field.
onBlur={() => {}}
/>
</div>
{ExtraFieldElement}