Fix time picker quick select (#34354)
This commit is contained in:
parent
027cd84fb0
commit
5c15e6b0b3
|
@ -380,16 +380,21 @@ export class QueryBarUI extends Component<Props, State> {
|
|||
start,
|
||||
end,
|
||||
isInvalid,
|
||||
isQuickSelection,
|
||||
}: {
|
||||
start: string;
|
||||
end: string;
|
||||
isInvalid: boolean;
|
||||
isQuickSelection: boolean;
|
||||
}) => {
|
||||
this.setState({
|
||||
dateRangeFrom: start,
|
||||
dateRangeTo: end,
|
||||
isDateRangeInvalid: isInvalid,
|
||||
});
|
||||
this.setState(
|
||||
{
|
||||
dateRangeFrom: start,
|
||||
dateRangeTo: end,
|
||||
isDateRangeInvalid: isInvalid,
|
||||
},
|
||||
() => isQuickSelection && this.onSubmit()
|
||||
);
|
||||
};
|
||||
|
||||
public onKeyUp = (event: React.KeyboardEvent<HTMLInputElement>) => {
|
||||
|
|
Loading…
Reference in a new issue