Rows causing unexpected nested Div in latest
See original GitHub issueIt seems that recent changes surrounding options.rows from 1 > 0 have caused some unexpected changes to the element structure where a nested div is getting injected causing the slide itself to be multiple children deep. To resolve this on my end, I just overwrote with a rows: 0
option when initializing.
====================================================================
http://jsfiddle.net/akahn/z6hLx76f/
The fiddle shows an example with the default and also, overriding the rows option which reverts to the previous functionality. Inspecting the slick output, you can see the new rows change has caused div nesting on the slide items which may be unintentional.
====================================================================
Steps to reproduce the problem
Inspect the rendered output elements Observe nesting in the default initialization
====================================================================
What is the expected behaviour?
The slider initializes against the desired markup without adding nesting and divs to the structure with a single row slider.
====================================================================
What is observed behaviour?
The slider is initializing the slider and nesting rows in a single row slider.
====================================================================
More Details
- Which browsers/versions does it happen on? Every
- Which jQuery/Slick version are you using? Master branch
- Did this work before? Yes, no issues with this functionality previously
Issue Analytics
- State:
- Created 6 years ago
- Reactions:29
- Comments:8
Top GitHub Comments
Having the same issues with Slick 1.8.0. First slider in page works as intended. Second slider on page nesting slide elements in an extra div. Adding
rows: 0
to the .slick() initialization for the second slider resolved the issue.Does it make a difference to use the
data-slick
attribute on the individual sliders and then$(element1, element2).slick();
?Any update on extra DIV added in slide div???