javascript - Bootstrap collapsible behaves weird -


my problem sampled in fiddle .

i have basic collapsible element toggle button inside:

<div class="visible-xs collapsible collapse in panel panel-primary">     <div>         lorem ipsum dolor sit amet, consectetur adipisicing elit. hic veritatis fugit veniam sapiente rem excepturi velit animi inventore mollitia reprehenderit nostrum natus autem quae minima dolor dolores voluptatum eum quia.     </div>     <br />     <div class="btn btn-primary" data-toggle="collapse" data-target=".collapsible">collapse</div> </div> 

when element collapses, children elements jumps out of collapsible.

what's wrong here?

because of visible-xs class.

<div class="collapsible collapse in panel panel-primary"> 

http://jsfiddle.net/g238b1qn/


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -