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

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}