mirror of
https://github.com/apache/superset.git
synced 2026-04-25 19:14:27 +00:00
fix: custom TimeRange can not input value (#14084)
This commit is contained in:
@@ -131,7 +131,7 @@ export function CustomFrame(props: FrameComponentProps) {
|
||||
<DatePicker
|
||||
showTime
|
||||
value={dttmToMoment(sinceDatetime)}
|
||||
onSelect={(datetime: Moment) =>
|
||||
onChange={(datetime: Moment) =>
|
||||
onChange('sinceDatetime', datetime.format(MOMENT_FORMAT))
|
||||
}
|
||||
allowClear={false}
|
||||
@@ -189,7 +189,7 @@ export function CustomFrame(props: FrameComponentProps) {
|
||||
<DatePicker
|
||||
showTime
|
||||
value={dttmToMoment(untilDatetime)}
|
||||
onSelect={(datetime: Moment) =>
|
||||
onChange={(datetime: Moment) =>
|
||||
onChange('untilDatetime', datetime.format(MOMENT_FORMAT))
|
||||
}
|
||||
allowClear={false}
|
||||
@@ -248,7 +248,7 @@ export function CustomFrame(props: FrameComponentProps) {
|
||||
<DatePicker
|
||||
showTime
|
||||
value={dttmToMoment(anchorValue)}
|
||||
onSelect={(datetime: Moment) =>
|
||||
onChange={(datetime: Moment) =>
|
||||
onChange('anchorValue', datetime.format(MOMENT_FORMAT))
|
||||
}
|
||||
allowClear={false}
|
||||
|
||||
Reference in New Issue
Block a user