Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Accordion doesn't accept conditional AccordionItem #108

Open
kboedges opened this issue Aug 4, 2020 · 0 comments
Open

Accordion doesn't accept conditional AccordionItem #108

kboedges opened this issue Aug 4, 2020 · 0 comments

Comments

@kboedges
Copy link
Contributor

kboedges commented Aug 4, 2020

https://github.com/mindbody/mbkit/blob/master/packages/Accordion/src/Accordion.tsx

When an AccordionItem is rendered conditionally with {condition && ( <AccordionItem...> ....} it generates an error that null cannot be cloned (when the condition turned out to be false). Is there a way to avoid this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant