Skip to content

Commit

Permalink
fix: custom TimeRange can not input value
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Apr 23, 2021
1 parent 0dfb32c commit e2c9919
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 e2c9919

Please sign in to comment.