Skip to content

[Input] Placeholder not hidden when formControl value changes with emitEvent: false #8982

@filipows

Description

@filipows

Bug, feature request, or proposal:

bug

What is the expected behavior?

Placeholder should hide if input value is not empty

What is the current behavior?

Placeholder overlaps the content of input
placeholder-bug

What are the steps to reproduce?

  1. MatFormField: floatPlaceholder="never" or floatLabel="never" (as floatPlaceholder is deprecated)
  2. Patch value of formControl with {emitEvent: false}

https://stackblitz.com/edit/angular-material2-issue-gvg3yu

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

Angular: 5.0
Material: 5.0

Ubuntu 16.04
Chrome Version 61.0.3163.100
Firefox Quantum Version 57

Is there anything else we should know?

It can be related to this issue: #7066

Metadata

Metadata

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