Uncaught TypeError: Cannot read property 'length' of undefined
Closed this issue · 7 comments
In the '_resetPages' function, sometimes '_animatedPages' is undefined. It happens to me when only 1 page is in the container.
are you using conditional dom-if
s?
I solved an issue when only one page was configured, are you using the latest version of the component?
that is, is the following code there: https://github.com/MeTaNoV/iron-swipeable-pages/blob/master/iron-swipeable-pages.html#L220
@andregauthier and if you have some code to reproduce, I would be curious to take a look at it! :)
can you test with the latest release? https://github.com/MeTaNoV/iron-swipeable-pages/releases/tag/1.2.2
I was using the latest release before your last changes. I updated and it now works perfectly. Thanks for the quick answer!
no problem, glad it works now! :)
@andregauthier and if you find the element useful, don't hesitate to star it! (merci d'avance! :) )