Skip to content

Commit

Permalink
Disable date picker temporarily (#3120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kadrian authored Jul 4, 2023
1 parent 446231f commit 5c4ef0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/js/ui-components/InputDate/InputDate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ type Props = Omit<BaseInputProps, "inputType"> & {
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<HTMLInputElement, Props>(
(
{
Expand Down Expand Up @@ -126,6 +130,7 @@ const InputDate = forwardRef<HTMLInputElement, Props>(
customInput={createElement(HiddenInput)}
calendarContainer={StyledCalendar}
calendarStartDay={1}
disabled={TEMPORARILY_DISABLED_DATE_PICKER}
/>
</Root>
);
Expand Down

0 comments on commit 5c4ef0b

Please sign in to comment.