Skip to content

Commit

Permalink
rms unnecessary data-inactive prop
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrotti committed Dec 11, 2023
1 parent 70f89d8 commit 22e5b57
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/ActionList/LinkItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const LinkItem = React.forwardRef(({sx = {}, active, inactiveText, as: Co
inactiveText={inactiveText}
data-inactive={inactiveText ? true : undefined}
_PrivateItemWrapper={({children, onClick, ...rest}) => {
delete rest['data-inactive'] // this attribute gets set on the parent item
const clickHandler = (event: React.MouseEvent) => {
onClick && onClick(event)
props.onClick && props.onClick(event as React.MouseEvent<HTMLAnchorElement>)
Expand Down
1 change: 0 additions & 1 deletion src/ActionList/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ type MenuItemProps = {
'aria-labelledby'?: string
'aria-describedby'?: string
role?: string
'data-inactive'?: string
}

export type ItemContext = Pick<ActionListItemProps, 'variant' | 'disabled'> & {
Expand Down

0 comments on commit 22e5b57

Please sign in to comment.