Skip to content

Commit

Permalink
fix(Tile): remove invalid attr; suppress false lint error carbon-desi…
Browse files Browse the repository at this point in the history
  • Loading branch information
kubijo committed Jun 12, 2023
1 parent 55a1ddc commit ddf888c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react/src/components/Tile/Tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -391,17 +391,15 @@ export const SelectableTile = React.forwardRef<
}

return (
// eslint-disable-next-line jsx-a11y/interactive-supports-focus
<div
className={classes}
onClick={!disabled ? handleOnClick : undefined}
role="checkbox"
aria-checked={isSelected}
disabled={disabled}
onKeyDown={!disabled ? handleOnKeyDown : undefined}
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
tabIndex={!disabled ? tabIndex : undefined}
value={value}
name={name}
ref={ref}
id={id}
onChange={!disabled ? handleChange : undefined}
Expand Down

0 comments on commit ddf888c

Please sign in to comment.