mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
chore[explore]: Save date if Ok not clicked (#12731)
* Save date if Ok not clicked * answering. comments
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user