Skip to content

mat-form-field appearance=outline causing browser hang #11329

Closed
@serates

Description

@serates

Bug, feature request, or proposal:

When using mat-form-field with appearance="outline" on a form field that is not initially available in the dom (such as hidden behind a *ngIf) My browser becomes unresponsive which makes me think there is some sort of infinite loop occuring

What is the expected behavior?

Should display correctly when hidden inside a ngIf or other dom hiding system, without causing my browser tab to freeze.

What is the current behavior?

Causes browser to hang.

What are the steps to reproduce?

Put a mat-form-field with appearance="outline" inside a *ngIf="" condition that is not true on initial render

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

Angular 6.01
Angular Material & CDK 6.0.2

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions