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 c8b5f37 commit 5c4d863
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 5c4d863

Please sign in to comment.