Skip to content

Commit

Permalink
Merge pull request #1928 from okta/fl-OKTA-636201-add-back-isDisabled…
Browse files Browse the repository at this point in the history
…-MenuItem

fix: add back isDisabled to MenuItem
  • Loading branch information
francoislehoux-okta authored Aug 16, 2023
2 parents 08fda1c + 2a51459 commit efe3af9
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 efe3af9

Please sign in to comment.