From 5c4ef0b61c5b91f2aef660e3f4e04a0b71fac628 Mon Sep 17 00:00:00 2001 From: Kai Rollmann Date: Tue, 4 Jul 2023 11:28:30 +0200 Subject: [PATCH] Disable date picker temporarily (#3120) --- frontend/src/js/ui-components/InputDate/InputDate.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/js/ui-components/InputDate/InputDate.tsx b/frontend/src/js/ui-components/InputDate/InputDate.tsx index d99ec77f55..00e57bc56b 100644 --- a/frontend/src/js/ui-components/InputDate/InputDate.tsx +++ b/frontend/src/js/ui-components/InputDate/InputDate.tsx @@ -45,6 +45,10 @@ type Props = Omit & { onCalendarSelect?: (val: string) => void; }; +// TODO: Remove this once we have solved +// - that the date picker overlays other fields in forms +const TEMPORARILY_DISABLED_DATE_PICKER = true; + const InputDate = forwardRef( ( { @@ -126,6 +130,7 @@ const InputDate = forwardRef( customInput={createElement(HiddenInput)} calendarContainer={StyledCalendar} calendarStartDay={1} + disabled={TEMPORARILY_DISABLED_DATE_PICKER} /> );