Skip to content

Mat-toolbar issue when using component selector as placeholder for mat-toolbar-row #15278

@willmcf

Description

@willmcf

What is the expected behavior?

The mat-toolbar should either:

  • render each mat-toolbar-row, even if it's within a separate component.
  • raise an error when a mat-toolbar-row is within a router-outlet.

What is the current behavior?

In both of the above use cases, the toolbar rows are "jumbled" and, for issue-1 the now familiar console error regarding "mixed toolbar modes" is raised. However, no errors are raised when a router-outlet is used in lieu of a component selector. This was my original problem and the lack of error reporting was unhelpful. I eventually distilled the problem to its simplest use case.

What are the steps to reproduce?

Here in Stackblitz

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

Angular CLI: 7.3.2
Node: 10.13.0
OS: win32 x64
Angular: 7.2.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package Version

@angular-devkit/architect 0.13.2
@angular-devkit/build-angular 0.13.2
@angular-devkit/build-optimizer 0.13.2
@angular-devkit/build-webpack 0.13.2
@angular-devkit/core 7.3.2
@angular-devkit/schematics 7.3.2
@angular/cdk 7.3.3
@angular/cli 7.3.2
@angular/material 7.3.3
@ngtools/webpack 7.3.2
@schematics/angular 7.3.2
@schematics/update 0.13.2
rxjs 6.3.3
typescript 3.2.4
webpack 4.29.0

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/toolbarfeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: discussionFurther discussion with the team is needed before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions