Describe the bug
The navigateTo() method in the Carousel component does not reset the internal _resizing flag before performing navigation. This causes the suppressAnimation getter to return true, which adds the ui5-carousel-content-no-animation CSS class and disables the slide transition.
This issue is particularly noticeable when arrowsPlacement is set to CarouselArrowsPlacement.Navigation, where the ResizeObserver triggers during initial mount and sets _resizing = true. The first programmatic call to navigateTo() then executes with animations suppressed.
Isolated Example
No response
Reproduction steps
- Create a Carousel with arrowsPlacement={CarouselArrowsPlacement.Navigation}
- Add multiple items to the carousel
- Call carouselRef.current?.navigateTo(1) programmatically on first user interaction (e.g., button click)
- Observe: First navigation has no animation (instant snap)
- Call navigateTo(2) again
- Observe: Subsequent navigations animate correctly
Expected Behaviour
Programmatic navigation via navigateTo() should animate smoothly on every call, including the first navigation after component mount.
Screenshots or Videos
No response
UI5 Web Components for React Version
Carousel
UI5 Web Components Version
"@ui5/webcomponents": "2.18.1", "@ui5/webcomponents-fiori": "2.18.1", "@ui5/webcomponents-react": "2.18.1", "@ui5/webcomponents-react-compat": "2.18.1",
Browser
Chrome
Operating System
No response
Additional Context
No response
Relevant log output
Organization
No response
Declaration
Describe the bug
The navigateTo() method in the Carousel component does not reset the internal _resizing flag before performing navigation. This causes the suppressAnimation getter to return true, which adds the ui5-carousel-content-no-animation CSS class and disables the slide transition.
This issue is particularly noticeable when arrowsPlacement is set to CarouselArrowsPlacement.Navigation, where the ResizeObserver triggers during initial mount and sets _resizing = true. The first programmatic call to navigateTo() then executes with animations suppressed.
Isolated Example
No response
Reproduction steps
Expected Behaviour
Programmatic navigation via navigateTo() should animate smoothly on every call, including the first navigation after component mount.
Screenshots or Videos
No response
UI5 Web Components for React Version
Carousel
UI5 Web Components Version
"@ui5/webcomponents": "2.18.1", "@ui5/webcomponents-fiori": "2.18.1", "@ui5/webcomponents-react": "2.18.1", "@ui5/webcomponents-react-compat": "2.18.1",
Browser
Chrome
Operating System
No response
Additional Context
No response
Relevant log output
Organization
No response
Declaration