Hi Team,
I am getting this console log error "Uncaught TypeError: Cannot read properties of undefined (reading 'offsetWidth') at OSUISplide._setCarouselWidth" with Carousel widget. Whenever screen resizes it throws this error.
Outsystems UI version is 2.19.2.
Do we need to upgrade the Outsystems UI version or any other suggestions on how to fix this error?
Thanks & Regards,
Bhagyashree
Hi @Bhagyashree Sawant ,
Are rendering the Carousel while hidden, for example are you using it in a tab?
You need to ensure that the Carousel is not being rendered in a hidden container or re-initialized when its DOM element is missing.
Hi @Mihai Melencu,
The Carousel gets loaded on screen load it is not hidden. We are not using tab, it is enclosed in a container which is visible. The error is thrown when we try to resize the screen manually.
I tested resizing using the Carousel from OutSystemsUI 2.21.0 and didn’t encounter any issues. Before diving deeper into the problem, I recommend upgrading to the latest version of OutSystemsUI.