diff --git a/packages/docusaurus-theme-common/src/components/Details/index.tsx b/packages/docusaurus-theme-common/src/components/Details/index.tsx index 0708acf6a6f0..611f301864bc 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}