jquery-accordion icon indicating copy to clipboard operation
jquery-accordion copied to clipboard

Initialization of opened branch of multilevel list

Open martinb2 opened this issue 8 years ago • 3 comments

Hi, Thank you for this smart script for accordion. I tried to implement it with opened only one defined branch of closed tree - by class="accordion open" defined in parent elements (in demo) - and there is some problem with calculating height. It seems that script calculate only height of first parent element and ignore others inside.

<section id="only-one" data-accordion-group> <section class="accordion open" data-accordion> <button data-control>Accordion 1</button> <div data-content> <article>Item</article> <article class="accordion open" data-accordion> <button data-control>2nd Level</button>

image

I tried to figure out and but withou success.

Does anybody have any idea?

martinb2 avatar Nov 13 '16 09:11 martinb2

+1

tomasjav avatar May 12 '17 11:05 tomasjav

Need to check why this is not happening on the demo. Can you provide sample code @martinb2 ?

vctrfrnndz avatar Jul 17 '17 23:07 vctrfrnndz

Any movement on this one? I am running into the same problem. Set the class to have open but content height is not being calculated properly. Still shows the accordion closed.

claytoncollie avatar Feb 28 '19 16:02 claytoncollie