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
|
||||
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}
|
||||
|
|
Loading…
Reference in New Issue