Open agendamatic opened 1 year ago
Hi @agendamatic. 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.
Creating a reproduction project helps us both identify the issue as you see it and be able to create test cases against it so you can verify that it is working as expected. If you could create a repro of this, that would be great!
I've updated the original post with the repo URL: https://github.com/DancesWithDingo/PickerTest.git
Sorry for the delay...couldn't for the life of me figure out how to change GitHub accounts within Visual Studio Mac.
Verified this on Visual Studio Enterprise 17.9.0 Preview 1(8.0.3). Repro on MacCatalyst 13.6.1, not repro on Windows 11 and iOS 17.0. Android: Cannot show selected item in the picker list.
Repro project: PickerTest.zip
Not sure if I am allowed to comment or ask here (sorry for the noise if I am not). I am affected by the same issue (.Net 8.0 on Mac OS). I tried a lot of different scenarios (with/without bindings, with/without callbacks, as simple as possible and very sophisticated examples) and I believe the Picker is essentially useless on Mac OS until this bug is fixed. Is there any workaround?
Sadly there is no workaround. And it's lack of attention to show-stopping flaws like this (not to mention MS reneging on their commitment to mac based developers) that finally convinced me to jump ship to SwiftUI. I've still got a half dozen MAUI bug reports across two accounts that the team moved to the back burner and forgot.
Description
On the MacCatalyst platform, the Picker control isn't being initialized correctly. Once a selection has been made, subsequent activations of the popup aren't initialized to the selected item.
Steps to Reproduce
Add the following XAML to a ContentPage, run the app and navigate to the page.
`
`
Select an option and dismiss the popup. Activate the picker again. The previously selected item should be selected as the default. Instead, the first item in the list is always selected.
This works as expected on iOS. Not tested on Android or Windows.
Link to public reproduction project repository
https://github.com/DancesWithDingo/PickerTest.git
Version with bug
6.0.312
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
Mac Catalyst
Did you find any workaround?
No.
Relevant log output
No response