-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'props' of null #45
Comments
I have the same problem -- I think there is a bug in the code. Any updates on this? |
I sort of understand why this might happen given our current codebase, because the accordion Accordion component does some traversal of its 'children' and all of its children must be AccordionItem components. However, in this instance ^ there is a child where A workaround would be to hide the AccordionItem with some additional className, rather than conditionally rendering it. We're currently working a big new release which should resolve this undesired behaviour, so hold tight :) |
@ryami333 is right. Temporary workaround would be to use |
I guess I didn't explain how the problem shows up for me -- it shows up when trying to iterate over a list and dynamically build an Accordian based on the values in the list.
|
Sounds like your problem might be unrelated then @EllaVader, even if it is the same error message. Could you please send me a snippet of your actual code? |
@volkova-annie this should be solved in v2.0.0 😀 Let us know how you get on with the upgrade! |
Hello!
I tried to create dynamically accordion with condition.
But I got an ERROR:
The example of my code:
Could you please help me to resolve this problem?
The text was updated successfully, but these errors were encountered: