Skip to content

Commit

Permalink
Proper way to fix details
Browse files Browse the repository at this point in the history
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
  • Loading branch information
Josh-Cena committed Aug 12, 2021
1 parent f8f5853 commit 446c86e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const Details = ({summary, children, ...props}: DetailsProps): JSX.Element => {
{[styles.isClient]: isClient},
props.className,
)}>
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}
<div
role="button"
tabIndex={0}
Expand All @@ -78,8 +79,7 @@ const Details = ({summary, children, ...props}: DetailsProps): JSX.Element => {
e.preventDefault();
}
}}
onClick={toggle}
onKeyDown={() => {}}>
onClick={toggle}>
{summary}

<Collapsible
Expand Down

0 comments on commit 446c86e

Please sign in to comment.