Skip to content

Using MAT_SNACK_BAR_DEFAULT_OPTIONS in parent module don't show snackbar at all #11197

Closed
@kgrvr

Description

@kgrvr

Bug, feature request, or proposal:

BUG

What is the expected behavior?

Snackbar should be displayed.

What is the current behavior?

Snackbar is not displaying.

What are the steps to reproduce?

Please have a look at StackBlitz: https://stackblitz.com/edit/angular-zihwqu?file=app%2Fsnack-bar-overview-example.ts

  1. Don't provide any Snackbar options when invoking open method.
  2. Provide Snackbar options in parent module.
  3. Try opening Snackbar.

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

Bug fix

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

Angular CLI: 6.0.0
Node: 8.9.0
OS: win32 x64
Angular: 6.0.0

Is there anything else we should know?

I don't think so

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions