You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for the reply.
I see that you have a test for that, but even after I updated to v0.58.0, the bug still persists.
Also, was it supposed to work on the codepen I sent? If so, it isn't working as well.
Thanks.
The controlled component pattern only works with the "panels" prop where the Accordion has control over creating the title/content children with the correct "active" prop set.
If you use subcomponents, as in the codepen, then you are responsible for the props on the subcomponents as well. In React there are no implicit parent child relationships. The docs could be more clear on this.
Steps
http://codepen.io/anon/pen/JRqzQO
Expected Result
state.activeIndex = 1
('what kinds of dogs are there?' active)
Actual Result
state.activeIndex = -1
(none active)
Version
0.56.14
The text was updated successfully, but these errors were encountered: