From 2a514593246778f6d9ebb0700da24de63707905d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Lehoux?= Date: Tue, 8 Aug 2023 14:34:13 -0400 Subject: [PATCH] fix: add back isDisabled to MenuItem --- packages/odyssey-react-mui/src/MenuItem.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/odyssey-react-mui/src/MenuItem.tsx b/packages/odyssey-react-mui/src/MenuItem.tsx index 062f7b8f32..1ecc5f8156 100644 --- a/packages/odyssey-react-mui/src/MenuItem.tsx +++ b/packages/odyssey-react-mui/src/MenuItem.tsx @@ -36,6 +36,10 @@ export type MenuItemProps = { * If `true`, the menu item will be visually marked as destructive. */ isDestructive?: boolean; + /** + * If `true`, the menu item will be visually marked as disabled. + */ + isDisabled?: boolean; /** * Callback fired when the menu item is clicked. */ @@ -56,6 +60,7 @@ const MenuItem = ({ children, hasInitialFocus, isSelected, + isDisabled, onClick: onClickProp, value, variant = "default", @@ -75,6 +80,7 @@ const MenuItem = ({ /* eslint-disable-next-line jsx-a11y/no-autofocus */ autoFocus={hasInitialFocus} selected={isSelected} + disabled={isDisabled} value={value} onClick={onClick} className={