chore[explore]: Save date if Ok not clicked (#12731)

* Save date if Ok not clicked

* answering. comments
This commit is contained in:
Nikola Gigić 2021-01-25 12:48:45 +01:00 committed by GitHub
parent 307e3a9f65
commit 9ab804b2bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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