diff --git a/src/sections/ResponsiveContentList.tsx b/src/sections/ResponsiveContentList.tsx index 98c219b..f47380c 100644 --- a/src/sections/ResponsiveContentList.tsx +++ b/src/sections/ResponsiveContentList.tsx @@ -6,6 +6,7 @@ import { AccordionItemHeading, AccordionItemButton, AccordionItemPanel, + resetNextUuid, } from "react-accessible-accordion" export interface ResponsiveContentProps { @@ -13,6 +14,10 @@ export interface ResponsiveContentProps { desktopClass?: string } +const resetAccordionUuid = () => { + resetNextUuid() +} + const ResponsiveContentList = (props: ResponsiveContentProps) => ( <> @@ -64,4 +69,5 @@ export { ResponsiveContentItem, ResponsiveContentItemHeader, ResponsiveContentItemBody, + resetAccordionUuid, }