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
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57
Current behavior
Currently the carousel page prop is not updating properly when the page prop data changes. It seems to be that the totalShiftedItems state is not being tracked, and therefore unable to scroll to active page.
Expected behavior
That's the page prop can support changes made to the prop value which would allow the carousel to detect which page should be the active slide, and scroll to the specified page.
Minimal reproduction of the problem with instructions
Provide state to the page prop.
Update the state to the page prop.
Will see the issue as the updated state is not being tracked and no re-rendering.
React version:
16.13.0
PrimeReact version:
4.2.2
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
The text was updated successfully, but these errors were encountered:
I'm submitting a ... (check one with "x")
Codesandbox Case (Bug Reports)
https://codesandbox.io/s/jovial-bhabha-t9n4k
Current behavior
Currently the carousel page prop is not updating properly when the page prop data changes. It seems to be that the totalShiftedItems state is not being tracked, and therefore unable to scroll to active page.
Expected behavior
That's the page prop can support changes made to the prop value which would allow the carousel to detect which page should be the active slide, and scroll to the specified page.
Minimal reproduction of the problem with instructions
React version:
16.13.0
PrimeReact version:
4.2.2
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
The text was updated successfully, but these errors were encountered: