Commit eed313f3 by Lucas Raschek Committed by GitHub

Templating: Fix multi-select keyboard toggle bug (#26841)

Fixes #20953
parent 62b103b8
...@@ -12,6 +12,7 @@ export class VariableInput extends PureComponent<Props> { ...@@ -12,6 +12,7 @@ export class VariableInput extends PureComponent<Props> {
if (NavigationKey[event.keyCode]) { if (NavigationKey[event.keyCode]) {
const clearOthers = event.ctrlKey || event.metaKey || event.shiftKey; const clearOthers = event.ctrlKey || event.metaKey || event.shiftKey;
this.props.onNavigate(event.keyCode as NavigationKey, clearOthers); this.props.onNavigate(event.keyCode as NavigationKey, clearOthers);
event.preventDefault();
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment