Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picker value inside CollectionView resets when scrolling the page. #26653

Closed
bhuwancb99 opened this issue Dec 16, 2024 · 10 comments · May be fixed by #26775
Closed

Picker value inside CollectionView resets when scrolling the page. #26653

bhuwancb99 opened this issue Dec 16, 2024 · 10 comments · May be fixed by #26775
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView area-controls-picker Picker migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/iOS 🍎 t/bug Something isn't working

Comments

@bhuwancb99
Copy link

Description

Picker value inside CollectionView resets when scrolling the page. If I set it again and scroll the page, the picker value resets again. This issue exists only on iOS devices and works fine on Android.

Steps to Reproduce

Attached is the project I created for your reference, which demonstrates the same issue.

MauiApp_9.zip

Link to public reproduction project repository

No response

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms, No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 18.2

Did you find any workaround?

No response

Relevant log output

@bhuwancb99 bhuwancb99 added the t/bug Something isn't working label Dec 16, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@bhuwancb99
Copy link
Author

Attached is the project I created for your reference, which demonstrates the same issue.
MauiApp_9.zip

@jfversluis
Copy link
Member

Duplicate of #25842

@jfversluis jfversluis marked this as a duplicate of #25842 Dec 16, 2024
@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
@bhuwancb99
Copy link
Author

@jfversluis - Is this issue fixed or still pending?

@bhuwancb99
Copy link
Author

@jfversluis - my production release pending for this issue? any update when it will fix?

@LeoJHarris
Copy link

@bhuwancb99 definitely not fixed on iOS at least.

@samhouts samhouts added platform/iOS 🍎 migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert area-controls-collectionview CollectionView, CarouselView, IndicatorView area-controls-picker Picker labels Dec 16, 2024
@bhuwancb99
Copy link
Author

@LeoJHarris - When will this be fixed? My 4 apps are still pending release to production after upgrading from Xamarin to MAUI. Is there any alternate way to fix this issue?

@LeoJHarris
Copy link

@bhuwancb99 Yes you can use VerticalStackLayout with BindableLayout or ListView with RetainElement set to True. Either should work.

@bhuwancb99
Copy link
Author

@LeoJHarris It is not possible because CollectionView provides significantly more functionality compared to ListView or VerticalStackLayout. Therefore, it is not feasible to change it throughout the application, especially since it is a large eCommerce app.

@LeoJHarris
Copy link

@LeoJHarris It is not possible because CollectionView provides significantly more functionality compared to ListView or VerticalStackLayout. Therefore, it is not feasible to change it throughout the application, especially since it is a large eCommerce app.

It should be possible, whats blocking you, we converted to VerticalStackLayout and the effort was rather small.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView area-controls-picker Picker migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants