Skip to content
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

Opening all Panels from the beginning #91

Closed
oodesign opened this issue Aug 28, 2018 · 4 comments
Closed

Opening all Panels from the beginning #91

oodesign opened this issue Aug 28, 2018 · 4 comments

Comments

@oodesign
Copy link

Hi!

Is there any way to have all panels as active?
I've seen defaultActiveKey and activeKey may be arrays, but not getting it to work...

Thanks!

@oodesign
Copy link
Author

Found it, thanks!

@fartinmartin
Copy link

fartinmartin commented Apr 8, 2020

@oodesign do you remember how you got this to work? I'm not having much luck.

Edit: just found it! #93 / specific comment

Edit: ...but I'm still not having much luck 🤷‍♂️ defaultActiveKey={(["1"], ["3"], ["5"])} seems to only evaluate the last array.

@oodesign
Copy link
Author

oodesign commented Apr 9, 2020

Hi!

Sorry, I don't remember and don't have access to that project anymore, so can't check the solution.

Anyway, if that may be a number or an array, shouldn't it be something like activeKey: [ '2' , '3' , '4' ] ?

In their own examples (in simple.js), if you try the following it works fine.

setActivityKey = () => { this.setState({ activeKey: ['2','3','4'], }); }

Hope it helps!

@fartinmartin
Copy link

Hey! Thanks so much for your reply! That was definitely the problem, haha, I appreciate it!

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

No branches or pull requests

2 participants