Skip to content

bug(FormField): Performance issue with multiple mat-label + outline input on v15.2.1 #26792

@inarrr

Description

@inarrr

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

V14

Description

When using multiple MatFormField appearance="outline" with MatLabel, The page freezes for 2-5 seconds on launch.
This behavior is only for Outline appearance with MatLabel.
All works smoothly without or with Fill appearance.

Reproduction

Steps to reproduce:

  1. Create multiple MatFormField (appearance=Outlline) with MatLabel

Expected Behavior

Page init smoothly

Actual Behavior

Page freezes for 2-5 seconds depending on MatFormField number.

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/form-fieldneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions