Skip to content

[BUG] Snackbar with Anchor not displayed on modal page #2734

Closed

Description

@lucacivale

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Snackbars with an Anchor are not displayed on modal pages.
If you create a Snackbar with Snackbar.Make(instead of using DisplaySnackbar extension method) and don't set the Anchor it works.

Add this button to the modal page to see the difference

var displaySnacbackWithoutAnchor = new Button()
	.CenterHorizontal()
	.Text("Display Snackbar without anchor");
displaySnacbackWithoutAnchor.Command = new AsyncRelayCommand(token => Snackbar.Make(
	"This Snackbar is not anchored.",
	() => { },
	"Close",
	TimeSpan.FromSeconds(5)).Show(token));

Image

Expected Behavior

Snackbars with Anchor should be displayed on modal pages.

Steps To Reproduce

  1. Run the CommunityToolkit.Maui.Samle application
  2. Open the Alerts/Snackbar page.
  3. Click on "Show Snackbar in Modal Page"
  4. Click on "Display Snackbar"

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui/tree/main/samples

Environment

- .NET MAUI CommunityToolkit: Main
- OS: Android 15
- .NET MAUI: 9.0.80

Anything else?

No response

Activity

  1. locked and limited conversation to collaborators on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions