Closed
Description
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