Skip to content

bug(COMPONENT): matTabContent tabs are in rootzone io angular zone #31867

@Anderman

Description

@Anderman

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

19.1.3

Description

button click events from the html are in the rootzone.

Reproduction

StackBlitz link: https://stackblitz.com/edit/stackblitz-starters-xdk6w73f
Steps to reproduce:

  1. click tab 2 -HTTP error (Tab 2) // error will not be logged on the console by the global error handler
  2. click tab B -HTTP error (Tab B) // error will be logged on the console by the global error handler

Expected Behavior

Error should be logged with the global error handler.
matTemplate should run under angular zone

Actual Behavior

click tab 2 -HTTP error (Tab 2) // error will not be logged on the console by the global error handler
click tab B -HTTP error (Tab B) // error will be logged on the console by the global error handler

Environment

stackblitz
Angular CLI: 20.3.1
Node: 20.19.1
Package Manager: npm 10.8.2
OS: linux x64

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions