♻️(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:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user