danielstocks / jQuery-Collapse

A lightweight (~1kb) jQuery plugin that enables expanding and collapsing content
http://webcloud.se/jQuery-Collapse/
MIT License
679 stars 153 forks source link

twitter bootstrap responsive toggle conflict #68

Closed agispas closed 4 years ago

agispas commented 10 years ago

I've copied your latest change for jquery.collapse.js ( 'collapsed' instead of 'open') from here https://github.com/danielstocks/jQuery-Collapse/blob/c8964af642d791811e765958ca5aa5a2b7302f00/src/jquery.collapse.js and this code:

$(".accordion-example").collapse({
          accordion: true,

          open: function() {
            this.addClass("collapsed");
            this.css({ height: this.children().outerHeight() });
          },
          close: function() {
            this.css({ height: "0px" });
            this.removeClass("collapsed");
          }
        });

But this still doesn't solve the issue with the Bootstrap toggle from navigation. What am I missing ? Thank you!

agispas commented 10 years ago

No one knows why it still conflicts with Bootstrap ?

danielstocks commented 4 years ago

Planned on fixing in #102