mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Call next in azure editor (#19799)
This commit is contained in:
parent
3ca01c3255
commit
14cf2a3514
@ -215,7 +215,7 @@ class QueryField extends React.Component<any, any> {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
handleBlur = () => {
|
handleBlur = (event: Event, editor: CoreEditor, next: Function) => {
|
||||||
const { onBlur } = this.props;
|
const { onBlur } = this.props;
|
||||||
// If we dont wait here, menu clicks wont work because the menu
|
// If we dont wait here, menu clicks wont work because the menu
|
||||||
// will be gone.
|
// will be gone.
|
||||||
@ -224,15 +224,17 @@ class QueryField extends React.Component<any, any> {
|
|||||||
onBlur();
|
onBlur();
|
||||||
}
|
}
|
||||||
this.restoreEscapeKeyBinding();
|
this.restoreEscapeKeyBinding();
|
||||||
|
return next();
|
||||||
};
|
};
|
||||||
|
|
||||||
handleFocus = () => {
|
handleFocus = (event: Event, editor: CoreEditor, next: Function) => {
|
||||||
const { onFocus } = this.props;
|
const { onFocus } = this.props;
|
||||||
if (onFocus) {
|
if (onFocus) {
|
||||||
onFocus();
|
onFocus();
|
||||||
}
|
}
|
||||||
// Don't go back to dashboard if Escape pressed inside the editor.
|
// Don't go back to dashboard if Escape pressed inside the editor.
|
||||||
this.removeEscapeKeyBinding();
|
this.removeEscapeKeyBinding();
|
||||||
|
return next();
|
||||||
};
|
};
|
||||||
|
|
||||||
removeEscapeKeyBinding() {
|
removeEscapeKeyBinding() {
|
||||||
|
Loading…
Reference in New Issue
Block a user