Carousel: page attribute not updating carousel #4684
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
description
The
page
attribute isn't updating which page of carousel items are in view. Dynamically changing thepage
value updatesindicators
andleft/right navigation
correctly, however, the carousel items themselves don't shift to show the correctpage
.It looks like internally the
Carousel
component makes a call tonavForward()
ornavBackward()
when the selected page index changes. Without those functions exposed orpage
updates working, there's no way for actions external to theCarousel
or its controls to update what page of items are shown.related issues
e.g. Carousel Component: add Methods like navForward() to Public API
Reproducer
https://codesandbox.io/p/sandbox/morning-meadow-3j8xll?file=%2Fsrc%2FApp.vue%3A1%2C1
PrimeVue version
3.34.0
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
Chrome 118
Steps to reproduce the behavior
page +1
button - note the controls and in view carousel page updatespage -1
button - note that the controls update, but the page in view does notpage
value will update the carousel controls, but not the visible pageExpected behavior
updating the value that gets passed into the
page
carousel attribute should update both the page in view, as well as the carousel controls (assuming the passed in value is a valid page index).The text was updated successfully, but these errors were encountered: