diff --git a/src/components/Accordion/FormAccordions.tsx b/src/components/Accordion/FormAccordions.tsx index 5a72f7c88f..076b6ccdee 100644 --- a/src/components/Accordion/FormAccordions.tsx +++ b/src/components/Accordion/FormAccordions.tsx @@ -54,6 +54,8 @@ const FormAccordions = ({ defaultOpen, children }: Props) => { multiple value={openAccordions} onValueChange={(details) => setOpenAccordions(details.value)} + lazyMount + unmountOnExit > {children} diff --git a/src/components/Accordion/FormAccordionsWithComments.tsx b/src/components/Accordion/FormAccordionsWithComments.tsx index fed095ba01..cfde0ecc62 100644 --- a/src/components/Accordion/FormAccordionsWithComments.tsx +++ b/src/components/Accordion/FormAccordionsWithComments.tsx @@ -154,6 +154,8 @@ const FormAccordionsWithComments = ({ defaultOpen, children, article, taxonomy, multiple value={openAccordions} onValueChange={(details) => setOpenAccordions(details.value)} + lazyMount + unmountOnExit > {children} diff --git a/src/containers/FormikForm/VersionAndNotesPanel.tsx b/src/containers/FormikForm/VersionAndNotesPanel.tsx index 35e689bee5..3afcc2fe2a 100644 --- a/src/containers/FormikForm/VersionAndNotesPanel.tsx +++ b/src/containers/FormikForm/VersionAndNotesPanel.tsx @@ -195,7 +195,7 @@ const VersionAndNotesPanel = ({ article, articleHistory, type, currentLanguage } /> )} - + {articleHistory.map((version, index) => { const isLatestVersion = index === 0; const published =