mreq / slick-lightbox

A lightbox wrapper for Ken's amazing slick carousel.
http://mreq.github.io/slick-lightbox/
MIT License
229 stars 103 forks source link

Using "images" param with only one image not loading slick properly #47

Closed ndimatteo closed 7 years ago

ndimatteo commented 7 years ago

I'm using the images param to open a collection of images. It appears that if there is only one image in the array (ie: ['/img/example-1.jpg'] that slick does not initialize properly.

It should be able to still open the lightbox, if only one image is present.

mreq commented 7 years ago

Thanks for reporting. Am currently working on implementing qunit tests, which should make fixing bugs much easier. In the meantime, try downgrading as that might fix the issue.

mreq commented 7 years ago

This should be fine in master, see https://github.com/mreq/slick-lightbox/blob/master/test/tests/images.test.coffee#L12. Can you confirm?