0

Expected Result

I need to have a "closeAll" button. But using exclusive={false}, because I need many line opened. It doesn't work.

Actual Result

Just exclusive={true} works.

Version

0.77.2

Testcase

https://codesandbox.io/s/k2wlkoz5wr

Oleksandr Fediashov
  • 4,315
  • 1
  • 24
  • 42

1 Answers1

1

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.

its4zahoor
  • 1,709
  • 1
  • 16
  • 23
Daniel Andrei
  • 2,654
  • 15
  • 16