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

v3 Accordion effect breaks when using toggle methods #20841

Closed
QuantumHive opened this issue Oct 5, 2016 · 1 comment
Closed

v3 Accordion effect breaks when using toggle methods #20841

QuantumHive opened this issue Oct 5, 2016 · 1 comment
Labels

Comments

@QuantumHive
Copy link

QuantumHive commented Oct 5, 2016

I'm using the Bootstrap 3 Collapse Accordion Example.
I've noticed that when using the javascript .collapse() methods, the accordion effect seems to be acting unexpected.
See this simple jsfiddle example.

Here I'm using $('#collapseOne').collapse('toggle');. Why? Because to demonstrate the following behavior:

  • Initially because of this piece of JavaScript, panel 1 gets expanded.
  • Clicking on panel 2 gives us the accordion effect as one would expect.
  • Clicking back on panel 1 gives an unexpected behavior in that both panels now are expanded.

Now if you remove the javascript and execute the following steps:

  • Click on panel 1 to expand
  • Click on panel 2 to get the accordion effect.
  • Clicking on panel 1 again, still gives us the accordion effect.

The observation here is that when using the .collapse('toggle') method, the accordion effect seems to be broken?

Would one expect this to break or might this be a bug?

@cvrebert
Copy link
Collaborator

cvrebert commented Oct 7, 2016

Closing per #20631. v3 is no longer supported.

@cvrebert cvrebert closed this as completed Oct 7, 2016
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

2 participants