Skip to content

bug(mat-tab-group): When component is present it hides errors #61006

@rsi21

Description

@rsi21

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

16

Description

Hello,

I noticed that in some of our internal components, an NG0100 error was raised all the times, in Angular 16.
Now that we migrate to Angular 19, we noticed that the error was not showing anymore in the console.
But it was stil raised in unit test like before.

After some research we discovered that it was not shown in browser console anymore when the component mat-tab-group was present in the page.

We noticed the same behavior in Angular 18 & 19.

Reproduction

Sample project link: https://stackblitz.com/edit/components-issue-starter-ptyvp9bg?file=src%2Fapp.config.ts
Steps to reproduce:

  1. Run the app with ng serve
  2. Click on "Simple" button for a page throwing a NG0100 in browser console
  3. Click on "tab group" button for the same simple page but also containing a simple mat-tab-group, NG0100 is not shown in console anymore

Expected Behavior

In development mode, see NG0100 in console.

Actual Behavior

NG0100 is not shown in dev mode when mat-tab-group is present in the page.

Environment

  • Angular: 19
  • CDK/Material: 19
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions