You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, when the carousel dimensions change, we may get the wrong pages value (when carouselWidth.value and itemWidth.value changes handled unsimultaniously, as I get it). In most cases this is not very bad, because after a moment the value will return to the correct one. But if you place the carousel in a modal, this code may produce a negative number, which will lead to a fatal error in the renderList vue function.
The solution is simple, just check the result for a negative number:
Environment
Version
2.13.0
Reproduction
https://stackblitz.com/edit/nuxt-ui-qyflse?file=app.vue
Please open preview in new tab and wait till the error appears.
Description
Code from Carousel.vue:
Sometimes, when the carousel dimensions change, we may get the wrong pages value (when carouselWidth.value and itemWidth.value changes handled unsimultaniously, as I get it). In most cases this is not very bad, because after a moment the value will return to the correct one. But if you place the carousel in a modal, this code may produce a negative number, which will lead to a fatal error in the renderList vue function.
The solution is simple, just check the result for a negative number:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: