Closed SvenBudak closed 4 years ago
I have a problem in this package. Maybe it is a bug. Open your Sandbox demo: https://codesandbox.io/s/ngx-tiny-slider-wait-for-dom-gvvqh and leave just one image in listOfImages like this:
listOfImages
public listOfImages: Array<string> = [ "http://www.mattsorger.com/newsletterpics/gsw07_01.jpg" ];
then you will get this error in console:
ERROR TypeError: Cannot read property 'getBoundingClientRect' of undefined
Any idea how we can fix it, that the slider also work if only 1 image is available? :)
@SvenBudak the message that you wrote is thrown by tiny-slider library if you want to use lazy image loading, try to load one instance of the library
@SvenBudak found an issue in the official repo of tiny-slider
https://github.com/ganlanyuan/tiny-slider/issues/545
I have a problem in this package. Maybe it is a bug. Open your Sandbox demo: https://codesandbox.io/s/ngx-tiny-slider-wait-for-dom-gvvqh and leave just one image in
listOfImages
like this:then you will get this error in console:
Any idea how we can fix it, that the slider also work if only 1 image is available? :)