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

collapse.js default toggle accordion behavior #13963

Closed
lustremedia opened this issue Jun 27, 2014 · 2 comments
Closed

collapse.js default toggle accordion behavior #13963

lustremedia opened this issue Jun 27, 2014 · 2 comments
Labels

Comments

@lustremedia
Copy link

Suggestion:
Why is the default accordion behavior (open a single toggle and close all others) dependent on '.panel' class

Couldn't this be decoupled into a data-attribute?

e.g. data-toggle-option="single" (opens the clicked toggle, closes all others)
data-toggle-option="individual" (opens each toggle independently, leaves opened toggles open)

Source ref: https://github.com/twbs/bootstrap/blob/master/js/collapse.js#L43

@cvrebert
Copy link
Collaborator

Duplicate of #10966.
We hope to address this in Bootstrap v4.

@lustremedia
Copy link
Author

Thanks for the heads up! Looking forward to v4.

@cvrebert cvrebert added the js label Apr 24, 2015
@twbs twbs locked and limited conversation to collaborators Apr 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants