diff --git a/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker.tsx b/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker.tsx index 16e97daec96..5cd99ef46e1 100644 --- a/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker.tsx +++ b/packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker.tsx @@ -66,6 +66,20 @@ export class UnthemedTimeRangePicker extends PureComponent { + if (event.code === 'Escape') { + this.onClose(); + } + }; + onClose = () => { this.setState({ isOpen: false }); };