(cherry picked from commit 9a178e7ba9)
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
This commit is contained in:
co-authored by
Hugo Häggmark
parent
06cb288848
commit
6c92beb7fe
@@ -46,6 +46,7 @@ export function TextBoxVariablePicker({ variable, onVariableChange }: Props): Re
|
||||
const onBlur = (e: FocusEvent<HTMLInputElement>) => updateVariable();
|
||||
const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {
|
||||
if (event.keyCode === 13) {
|
||||
event.preventDefault();
|
||||
updateVariable();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user