♻️(react) remove disabled from getItemProps

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.
This commit is contained in:
Nathan Vasse
2024-02-07 15:51:39 +01:00
committed by NathanVss
parent ebfccc1f99
commit 162809dd9c

View File

@@ -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":