Skip to content

[BUG] Popups: CloseOnBackgroundTapped not honored. Android popup not displayed #3322

Open
@ramtechjoe

Description

@ramtechjoe

Description

When the Prism.Plugins.Popups.Maui setting the prism:DialogLayout.CloseOnBackgroundTapped="True" does not result in the dialog closing on a background tap.

In Android emulators I am not seeing any popup appear.

What I have observed is that if you remove the .ConfigureMopupDialogs() from the prism setup that the dialog will be dismissed. However, that causes the background to grey out behind the dialog so it is not the desired behavior

Steps to Reproduce

  1. Clone sample popups repository. Does require adding a valid NuGet.Config to /src folder for Prism feed after cloning
  2. Run app on iOS or macCatalyst
  3. Click the Click Me button to open dialog
  4. Tapping on background will not dismiss dialog
  5. Run the app on an Android emulator
  6. Click the Click Me button
  7. No dialog appears
  8. Remove .ConfigureMopupDialogs() from the prism startup in MauiProgram.cs
  9. Repeat above steps

Platform with bug

.NET MAUI

Affected platforms

iOS, Android, I was not able test on other platforms, macOS

Did you find any workaround?

Workaround is to add a dismiss X button on dialogs so they can be closed

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions