We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
startOpen
1 parent fe80bd2 commit 6190cfaCopy full SHA for 6190cfa
src/app/components/content/IsaacAccordion.tsx
@@ -183,7 +183,8 @@ export const IsaacAccordion = ({doc}: {doc: ContentDTO}) => {
183
{isPhy && stageInserts?.[index] && <StageInsert stage={stageInserts[index]} />}
184
<Accordion
185
key={`${section.sectionIndex} ${index}`} id={section.id} index={index}
186
- startOpen={section.startOpen || index === firstSectionToOpen} deEmphasised={section.deEmphasised}
+ startOpen={section.startOpen || !isDefined(firstSectionToOpen) ? undefined : index === firstSectionToOpen} /* use default <Accordion/> startOpen behaviour if behaviour undefined */
187
+ deEmphasised={section.deEmphasised}
188
trustedTitle={section?.title || ""}
189
audienceString={audienceString}
190
>
0 commit comments