From 162809dd9c74987e62abcde86887f910fccb81c8 Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Wed, 7 Feb 2024 15:51:39 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(react)=20remove=20disabled?= =?UTF-8?q?=20from=20getItemProps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This way triggering thousands of warnings in the console and during tests. Removing it works because it seems that having item.disabled set allows to not having to use isItemDisabled. --- packages/react/src/components/Forms/DatePicker/Calendar.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react/src/components/Forms/DatePicker/Calendar.tsx b/packages/react/src/components/Forms/DatePicker/Calendar.tsx index cd75011..96dfb47 100644 --- a/packages/react/src/components/Forms/DatePicker/Calendar.tsx +++ b/packages/react/src/components/Forms/DatePicker/Calendar.tsx @@ -67,7 +67,6 @@ const DropdownValues = ({ options, downShift }: DropdownValuesProps) => ( {...downShift.getItemProps({ item, index, - disabled: item.disabled, })} className={classNames("c__calendar__menu__item", { "c__calendar__menu__item--highlight":