mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 14:27:27 -08:00
web/ui: Hitting enter on range input creates a new query (#8581)
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
This commit is contained in:
parent
3e17eaada5
commit
369aae93a8
|
@ -101,6 +101,9 @@ class GraphControls extends Component<GraphControlsProps> {
|
|||
defaultValue={formatDuration(this.props.range)}
|
||||
innerRef={this.rangeRef}
|
||||
onBlur={() => this.onChangeRangeInput(this.rangeRef.current!.value)}
|
||||
onKeyDown={(e: React.KeyboardEvent<HTMLInputElement>) =>
|
||||
e.key === 'Enter' && this.onChangeRangeInput(this.rangeRef.current!.value)
|
||||
}
|
||||
/>
|
||||
|
||||
<InputGroupAddon addonType="append">
|
||||
|
|
Loading…
Reference in a new issue