Skip to content

Commit

Permalink
fix: custom TimeRange can not input value (#14084)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie authored Apr 23, 2021
1 parent b963624 commit d1afca4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit d1afca4

Please sign in to comment.