diff --git a/packages/docusaurus-theme-common/src/components/Details/index.tsx b/packages/docusaurus-theme-common/src/components/Details/index.tsx index 0708acf6a6f00..611f301864bcc 100644 --- a/packages/docusaurus-theme-common/src/components/Details/index.tsx +++ b/packages/docusaurus-theme-common/src/components/Details/index.tsx @@ -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 */}
{ e.preventDefault(); } }} - onClick={toggle} - onKeyDown={() => {}}> + onClick={toggle}> {summary}