From 446c86e7c543855cfe3970f4113e79583c842692 Mon Sep 17 00:00:00 2001 From: Josh-Cena Date: Wed, 11 Aug 2021 22:31:49 +0800 Subject: [PATCH] Proper way to fix details Signed-off-by: Josh-Cena --- .../docusaurus-theme-common/src/components/Details/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}