-
-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carousel - Error while sliding when there is only 1 item present #250
Comments
I can reproduce the bug in your demo, @Vuurvlieg (missing slide) |
@midzer Thanks for taking a look. When you enter a random value for the interval, like 5000, then open the dev. console an wait a few seconds. You will see an error "Uncaught TypeError: Cannot read property 'classList' of undefined". |
Why didn't this come like 3 days ago before we launched 2.0.24? |
I just saw yesterday that a new version was available so I downloaded this new version and tested my website. Then I ran into this issue. |
@thednp Awesome, thanks for fixing and releasing a new version! |
@Vuurvlieg I think that is something for you to handle via PHP or whatever environment you're in. |
Hi, its me again. There is a little problem with the v4 Carousel. It may happen that there is only 1 item in the Carousel present. If this is the case and you click the "next" button or the interval is not zero, the Carousel throws an error and the Carousel will be messed up.
The solution is simple, just move the order of the following code into this order:
Please check this example and click the next button and see what will happen. Please let me know if its not clear.
The text was updated successfully, but these errors were encountered: