fix(explore): Datepicker glitch on hover outside the modal (#15033)

This commit is contained in:
Kamil Gabryjelski 2021-06-08 07:46:09 +02:00 committed by GitHub
parent a1ca0b2e6b
commit 0e07a5ca03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,7 @@ export function CustomFrame(props: FrameComponentProps) {
<Row>
<DatePicker
showTime
value={dttmToMoment(sinceDatetime)}
defaultValue={dttmToMoment(sinceDatetime)}
onChange={(datetime: Moment) =>
onChange('sinceDatetime', datetime.format(MOMENT_FORMAT))
}
@ -188,7 +188,7 @@ export function CustomFrame(props: FrameComponentProps) {
<Row>
<DatePicker
showTime
value={dttmToMoment(untilDatetime)}
defaultValue={dttmToMoment(untilDatetime)}
onChange={(datetime: Moment) =>
onChange('untilDatetime', datetime.format(MOMENT_FORMAT))
}
@ -247,7 +247,7 @@ export function CustomFrame(props: FrameComponentProps) {
<Col>
<DatePicker
showTime
value={dttmToMoment(anchorValue)}
defaultValue={dttmToMoment(anchorValue)}
onChange={(datetime: Moment) =>
onChange('anchorValue', datetime.format(MOMENT_FORMAT))
}