slick icon indicating copy to clipboard operation
slick copied to clipboard

1.5.9 gets initialized but somehow it doesn't work, wraps some extra divs

Open Stiropor opened this issue 10 years ago • 18 comments

Slider worked fine with 1.5.7. I updated to 1.5.9, slider wrapper gets the slick-initialized and slick-slider class, all slides somehow get wrapped with two divs, slides are shown one below the other. Console log displays no error, I tried with both jQuery 2.1.4 and 2.2.0, no difference. I'm using this basic html:

<div class="cars-featured">
    <article>
        <div class="slide-background" data-background="/path/to/image.jpg"></div>
    </article>
    <article>
        <div class="slide-background" data-background="/path/to/image.jpg"></div>
    </article>
    <article>
        <div class="slide-background" data-background="/path/to/image.jpg"></div>
    </article>
</div>

and running it with:

$('.cars-featured').slick({
    infinite: true,
    slidesToShow: 1,
    slide: 'article',
    arrows: false,
    speed: 300,
    autoplay: true,
    autoplaySpeed: 4000
});

This is the code it creates, no idea where those wrapped divs come from. screen shot 2016-01-12 at 21 47 39

No other script is involved for this case.

Stiropor avatar Jan 12 '16 20:01 Stiropor

No JSFiddle - closing

mcashley avatar Jan 14 '16 19:01 mcashley

  • DELETED due to me being an idiot, sorry -

Stiropor avatar Jan 14 '16 19:01 Stiropor

  • EDITED due to him being sorry

kenwheeler avatar Jan 14 '16 19:01 kenwheeler

@kenwheeler I appreciate the work you do maintaining Slick. I've used it on dozens of projects, and it has saved me tons of time and headaches. Thanks!

danielbachhuber avatar Jan 14 '16 19:01 danielbachhuber

@danielbachhuber thanks homie

kenwheeler avatar Jan 14 '16 19:01 kenwheeler

@Stiropor The requirements are laid out in CONTRIBUTING. Don't get defensive, just follow the rules.

vakhtang avatar Jan 14 '16 19:01 vakhtang

Maybe asking for a JSFiddle would be even better not just closing with "No JSFiddle - closing". I don't know what kind of requests you have. I know this project is free, so far it worked great, I appreciate the work and all, but if you want something ask, just closing the issue doesn't help anything (and yeah, my attitude doesn't either, maybe it's time to leave the office after 15 hours). Posting JSFiddle asap. Thanks.

Stiropor avatar Jan 14 '16 19:01 Stiropor

@Stiropor screen shot 2016-01-14 at 2 48 07 pm

kenwheeler avatar Jan 14 '16 19:01 kenwheeler

:disappointed:

joshmanders avatar Jan 14 '16 19:01 joshmanders

Maybe we could say

Closing - please add a JSFiddle to reopen

Might have a softer touch with our valued community.

On Thursday, January 14, 2016, Ken Wheeler [email protected] wrote:

Wait @Stiropor https://github.com/Stiropor, you want me to take time out of my day, to diagnose and fix your issue, for free, and you can't give a fraction of that time to show a reduced test case in jsfiddle to help me do that quicker? Give me 10 minutes and I'll gladly process your refund.

— Reply to this email directly or view it on GitHub https://github.com/kenwheeler/slick/issues/2016#issuecomment-171754187.

senoff avatar Jan 14 '16 21:01 senoff

Noted. sorry, its my first time contributing like this, so I was treating it like work.

I did not realize the community was so sensitive -ashley

On Jan 14, 2016, at 1:44 PM, senoff [email protected] wrote:

Maybe we could say

Closing - please add a JSFiddle to reopen

Might have a softer touch with our valued community.

On Thursday, January 14, 2016, Ken Wheeler [email protected] wrote:

Wait @Stiropor https://github.com/Stiropor, you want me to take time out of my day, to diagnose and fix your issue, for free, and you can't give a fraction of that time to show a reduced test case in jsfiddle to help me do that quicker? Give me 10 minutes and I'll gladly process your refund.

— Reply to this email directly or view it on GitHub https://github.com/kenwheeler/slick/issues/2016#issuecomment-171754187.

— Reply to this email directly or view it on GitHub https://github.com/kenwheeler/slick/issues/2016#issuecomment-171790683.

mcashley avatar Jan 14 '16 21:01 mcashley

@senoff agreed, but normally folks don't respond like this

@mcashley don't sweat it, let's go with a will reopen clause

kenwheeler avatar Jan 14 '16 22:01 kenwheeler

@kenwheeler and @mcashley Bad timing and my very bad reply, I know. It wasn't right and I apologize, it was a pretty retarded reaction. I know there are many issues you have to work with and all, but the goal should be to fix your script if problem is found and just closing it doesn't help. I also cannot read guidelines for every project (and never had any problems before), but yeah, posing JSFiddle is the right way.

Anyway, here is what I figured out: the problem is version on master, 1.5.9 (if downloaded from website) works, master (it says 1.5.9 of course) doesn't. I will be careful about this in the future and am using the website's version now. And here are the examples:

1.5.9 (working): https://jsfiddle.net/oa893ss1/18/ 1.5.9 from github (nonworking): https://jsfiddle.net/oa893ss1/16/

Tested in Chrome.

Hope this helps.

Stiropor avatar Jan 14 '16 22:01 Stiropor

@Stiropor thanks man, don't sweat it

kenwheeler avatar Jan 14 '16 22:01 kenwheeler

I actually had a problem with the code in master as well. The last check in checking for

_.options.rows >= 1 

doesn't jive for me

mcashley avatar Jan 14 '16 23:01 mcashley

@mcashley can you show me a line number for that? whats going on there?

kenwheeler avatar Jan 15 '16 00:01 kenwheeler

@mcashley yeah its the rows

kenwheeler avatar Jan 15 '16 00:01 kenwheeler

Reverted, master should be fine now

kenwheeler avatar Jan 15 '16 00:01 kenwheeler