Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(MatTabModule): Loading many formcontrols on 2nd, 3rd, etc tab (not 1st) will result in "Error: Could not find identifiable element" #30243

Closed
1 task
ViVer-7 opened this issue Dec 27, 2024 · 1 comment
Labels
needs triage This issue needs to be triaged by the team

Comments

@ViVer-7
Copy link

ViVer-7 commented Dec 27, 2024

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

No response

Description

My app uses the MatTabModule, with currently 5 tabs.
Using form controls on tab1 is working like expected, but on any other tab, it throws an error.
At least, when using A LOT of controls (like 100).

Reproduction

Steps to reproduce:

HTML:

<mat-tab-group>
    <mat-tab label="Tab1">
        Some Content Tab1
    </mat-tab>
    <mat-tab label="Tab2">

        @for (i of [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]; track $index) {
            <div [formGroup]="form">
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
                <input matInput>
            </div>                
        }    
    </mat-tab>
</mat-tab-group>

Whenever I lower the number of loops....there is no error....

Expected Behavior

Expected result is to be able to use as many controls as I want, without throwing an error...

Actual Behavior

Tab and Form is loaded as expected, but throwing an error, see attached screenshot.
Image

Environment

  • Angular: ~19.0.0
  • Angular Material: ~19.0.4
  • Browser(s): Chrome (latest)
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS
@ViVer-7 ViVer-7 added the needs triage This issue needs to be triaged by the team label Dec 27, 2024
@crisbeto
Copy link
Member

It looks like this error is coming from a Chrome extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

2 participants