Angular: Fixes issue with angular directive caused by angular upgrade in master (#30114)

This commit is contained in:
Torkel Ödegaard 2021-01-08 10:56:10 +01:00 committed by GitHub
parent 4aa09a6a71
commit ccf2e255fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,9 @@ export class FormDropdownCtrl {
// listen to model changes
$scope.$watch('ctrl.model', this.modelChanged.bind(this));
}
$onInit() {
if (this.labelMode) {
this.cssClasses = 'gf-form-label ' + this.cssClass;
} else {