From fc8b4feb4e085a62701db1cc06367f40a5b09efb Mon Sep 17 00:00:00 2001 From: Jay Puntham-Baker Date: Tue, 23 Aug 2022 17:03:11 -0400 Subject: [PATCH] fix: multi-create form bugs from mantine upgrade --- src/components/admin/CreateRow.tsx | 8 -------- src/components/admin/ImageDropzone.tsx | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/admin/CreateRow.tsx b/src/components/admin/CreateRow.tsx index 38cb0f2d1..261198fb5 100644 --- a/src/components/admin/CreateRow.tsx +++ b/src/components/admin/CreateRow.tsx @@ -114,14 +114,6 @@ export const CreateRow = (props: Props) => { } }, [values.year]); - /* Update the year field based on the start date */ - useEffect(() => { - const startDateYear = values.startDate?.getFullYear(); - if (startDateYear && values.year !== startDateYear) { - setFieldValue('year', values.startDate.getFullYear()); - } - }, [values.startDate]); - /* Set GitHubRepoID when values are returned from the hook */ useEffect(() => { if (githubRepoId && githubRepoId !== values.githubRepoId) { diff --git a/src/components/admin/ImageDropzone.tsx b/src/components/admin/ImageDropzone.tsx index 87656ecf2..d7e1ee42b 100644 --- a/src/components/admin/ImageDropzone.tsx +++ b/src/components/admin/ImageDropzone.tsx @@ -93,7 +93,6 @@ export const DropzoneChildrenSmall = ({ file, error }: DropzoneChildrenProps) => transition="pop-top-left" styles={{ dropdown: { - pointerEvents: 'none', backgroundColor: BackgroundPanel2, borderColor: BackgroundPanel2, }, @@ -102,6 +101,7 @@ export const DropzoneChildrenSmall = ({ file, error }: DropzoneChildrenProps) => >