maui
maui copied to clipboard
CarouselView current item isn't changing
Description
In my case, I need to change position of the current element using a button. When the button is pressed, the position should simply increment. The problem is that when I press the button, nothing happens. But after swiping to change the position, pressing the button works fine as expected.
I tried only on Android
Steps to Reproduce
- Run project that is in reproduction project repository.
- After starting app press button 'Next' without swiping items in cariusel before clicking button.
- Observe the bug.
Expected outcome: current item of carousel is changings after button click Actual outcome: current iten isn't changing
Link to public reproduction project repository
https://github.com/vladPanasiuk/CarouselViewLoopBugReproduction
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 13
Did you find any workaround?
After hours of experiments, I noticed that it only is reproducing when Loop="False"
. So Loop="True"
fixes it, but this workaround isn't fine because I need to disable looping.
Relevant log output
No response
Hi @vladPanasiuk. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
Hi! I added reproduction project url and updated reproduction steps
Looks related to https://github.com/dotnet/maui/issues/9749
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Same or similar to https://github.com/dotnet/maui/issues/9749
Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Can repro on Android platform with sample project.
https://github.com/vladPanasiuk/CarouselViewLoopBugReproduction