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

Accordion defaultActiveIndex when exclusive={false} #1449

Closed
egorshulga opened this issue Mar 13, 2017 · 4 comments
Closed

Accordion defaultActiveIndex when exclusive={false} #1449

egorshulga opened this issue Mar 13, 2017 · 4 comments
Labels

Comments

@egorshulga
Copy link

Steps

http://codepen.io/egorshulga/pen/bqREBV

Expected Result

'what kinds of dogs are there?' active

Actual Result

none active

Version

0.67.0

@dylankiss
Copy link
Contributor

You should use an array of active indexes when setting exclusive to false.
<Accordion defaultActiveIndex={[1]} exclusive={false}>

@layershifter
Copy link
Member

@dylankiss Thanks for correct answer 👍

@dylankiss
Copy link
Contributor

@layershifter Maybe this should be added to the exclusive example in the Accordion docs? Currently you can only find out by looking at the code.

@layershifter
Copy link
Member

@dylankiss I'm performing Accordion refactor #1375, there is updated example that shows work with indexes.

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

No branches or pull requests

3 participants