From 14cf2a351440b91c9969fb2f15f3e25a5e4738c5 Mon Sep 17 00:00:00 2001 From: Andrej Ocenas Date: Tue, 15 Oct 2019 14:56:54 +0200 Subject: [PATCH] Call next in azure editor (#19799) --- .../grafana-azure-monitor-datasource/editor/query_field.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/app/plugins/datasource/grafana-azure-monitor-datasource/editor/query_field.tsx b/public/app/plugins/datasource/grafana-azure-monitor-datasource/editor/query_field.tsx index c9deb1bcee8..2a701839ba3 100644 --- a/public/app/plugins/datasource/grafana-azure-monitor-datasource/editor/query_field.tsx +++ b/public/app/plugins/datasource/grafana-azure-monitor-datasource/editor/query_field.tsx @@ -215,7 +215,7 @@ class QueryField extends React.Component { ); }; - handleBlur = () => { + handleBlur = (event: Event, editor: CoreEditor, next: Function) => { const { onBlur } = this.props; // If we dont wait here, menu clicks wont work because the menu // will be gone. @@ -224,15 +224,17 @@ class QueryField extends React.Component { onBlur(); } this.restoreEscapeKeyBinding(); + return next(); }; - handleFocus = () => { + handleFocus = (event: Event, editor: CoreEditor, next: Function) => { const { onFocus } = this.props; if (onFocus) { onFocus(); } // Don't go back to dashboard if Escape pressed inside the editor. this.removeEscapeKeyBinding(); + return next(); }; removeEscapeKeyBinding() {