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