Skip to content

Commit

Permalink
fix: add back isDisabled to MenuItem
Browse files Browse the repository at this point in the history
  • Loading branch information
francoislehoux-okta committed Aug 8, 2023
1 parent 42fc2c4 commit 2a51459
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/odyssey-react-mui/src/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -56,6 +60,7 @@ const MenuItem = ({
children,
hasInitialFocus,
isSelected,
isDisabled,
onClick: onClickProp,
value,
variant = "default",
Expand All @@ -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={
Expand Down

0 comments on commit 2a51459

Please sign in to comment.