Skip to content

How to close a custom snackbar ? #10676

@stoto34

Description

@stoto34

Bug, feature request, or proposal:

I've searched in closed and opened issues but didn't find the answer. I don't understand why we can add an action for a snackbar but not for a custom snackbar. Maybe there is a way but I didn't find it.

What is the expected behavior?

I would like to be able to close a custom snackbar.

What is the current behavior?

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

StackBlitz starter: https://goo.gl/wwnhMV

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular : 5.2.0

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions