Answer the question
In order to leave comments, you need to log in
Why does slick js add 2 extra divs?
I install slick js in vue or via npm in an html project, and it doesn't matter which way, via vue-slick or using jquery and slick-caousel.
Set this behavior if I install slick-carousel via NPM. Then 2 or one extra div immediately appears. I don't understand why.
How can the problem be solved?
Answer the question
In order to leave comments, you need to log in
On webpack, a similar problem was solved by connecting a minified filerequire('slick-carousel/slick/slick.min.js');
Maybe somewhere stupidly unclosed div =)
Search, of course, by the method of exceptions, plus look inside slick, suddenly there is something like usediv = true somewhere to wrap it in an empty div? In general, a lot of options
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question