Skip to content

'shouldLabelFloat' Error during ng update @angular/material #16143

Closed
@tomgruszowski

Description

@tomgruszowski

Reproduction

Get a 'Found class "InputFileComponent" which extends "MatFormFieldControl". This class must define "shouldLabelFloat" which is now a required property' error during ng update to angular material 8

My class correctly implements this property per angular docs. https://material.angular.io/guide/creating-a-custom-form-field-control#-code-shouldlabelfloat-code-

@HostBinding('class.floating')
get shouldLabelFloat() {
return this.focused || !this.empty;
}

Expected Behavior

There shouldn't be an error

Actual Behavior

Error

Environment

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

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