Skip to content

Picker doesn't show options in modal #6101

@kreitje

Description

@kreitje

Description

When nagivgation to a page that has Shell.PresentationMode="Modal" or Shell.PresentationMode="ModalAnimated" you are not able to pick options. Remove the Shell.PresentationMode attribute show it navigates like a page, and the options will show.

maui-picker

.

Steps to Reproduce

  1. Create a new .NET Maui project
  2. Add a new page with a picker
<Picker.Items>
    <x:String>Baboon</x:String>
    <x:String>Capuchin Monkey</x:String>
    <x:String>Blue Monkey</x:String>
    <x:String>Squirrel Monkey</x:String>
    <x:String>Golden Lion Tamarin</x:String>
    <x:String>Howler Monkey</x:String>
    <x:String>Japanese Macaque</x:String>
  </Picker.Items>
</Picker>
  1. Run the app
  2. From the main page, navigate to this new page.
  3. Click the picker and you can see the drop downs
  4. Stop the app
  5. Edit the new pages xaml adding Shell.PresentationMode="ModalAnimated" to the ContentPage element.
  6. Run the app
  7. From the main page, navigate to this new page. This should open in a modal
  8. Click the picker and none of the options show up

Version with bug

Release Candidate 1 (current)

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

net6.0-maccatalyst15.4.100-rc.1.125, Mac OS 12.3.1

Did you find any workaround?

Don't use the picker on a page being displayed as a modal.

Relevant log output

Nothing relevant shows up

Metadata

Metadata

Assignees

Labels

area-controls-pickerPickerarea-controls-shellShell Navigation, Routes, Tabs, Flyoutp/2Work that is important, but is currently not scheduled for releasepartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions