Skip to content

[Input] Suffix wrapper not removed with ngIf #8988

@maartenmensink

Description

@maartenmensink

Bug, feature request, or proposal:

 [x] Bug
 [ ] Feature request
 [ ] Proposal

What is the expected behavior?

matSuffix wrapper element should be removed from dom when ngIf is used on element

What is the current behavior?

matSuffix element is removed upon focusing the mat-form-field element

What are the steps to reproduce?

https://stackblitz.com/edit/angular-ddtyp7

In sample do the following

  1. Click on eye icon. The .00 suffix disappears but the wrapper marked in red remains
  2. Focus on the second input the wrappers is removed from dome.

What is the use-case or motivation for changing an existing behavior?

incorrect behavior

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

Angular 5.x
Chrome

Is there anything else we should know?

ac053285-02a1-41be-b430-be05027d7e51
snag_1938b8e6
snag_1938c73d
snag_1938d140

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions