From d1afca4fa1bd6fa576282da51cb676ed42d06db2 Mon Sep 17 00:00:00 2001 From: Yongjie Zhao Date: Fri, 23 Apr 2021 15:20:37 +0800 Subject: [PATCH] fix: custom TimeRange can not input value (#14084) --- .../controls/DateFilterControl/components/CustomFrame.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/superset-frontend/src/explore/components/controls/DateFilterControl/components/CustomFrame.tsx b/superset-frontend/src/explore/components/controls/DateFilterControl/components/CustomFrame.tsx index 1107f366fb..fe486c3ef8 100644 --- a/superset-frontend/src/explore/components/controls/DateFilterControl/components/CustomFrame.tsx +++ b/superset-frontend/src/explore/components/controls/DateFilterControl/components/CustomFrame.tsx @@ -131,7 +131,7 @@ export function CustomFrame(props: FrameComponentProps) { + onChange={(datetime: Moment) => onChange('sinceDatetime', datetime.format(MOMENT_FORMAT)) } allowClear={false} @@ -189,7 +189,7 @@ export function CustomFrame(props: FrameComponentProps) { + onChange={(datetime: Moment) => onChange('untilDatetime', datetime.format(MOMENT_FORMAT)) } allowClear={false} @@ -248,7 +248,7 @@ export function CustomFrame(props: FrameComponentProps) { + onChange={(datetime: Moment) => onChange('anchorValue', datetime.format(MOMENT_FORMAT)) } allowClear={false}