I need to have a "closeAll" button. But using exclusive={false}
, because I need many line opened. It doesn't work.
Just exclusive={true}
works.
0.77.2
The issue is that it's being overwritten by your activeIndex
prop.
Update: You can try this fork of your example.
The idea is that if you're using exclusive={false}
you need to pass activeIndex
as an array. Then all you have to do is change the way you update the indexes on the event handlers.