From ccf2e255fee44b7e4e9388149d7826bf38aad60a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 8 Jan 2021 10:56:10 +0100 Subject: [PATCH] Angular: Fixes issue with angular directive caused by angular upgrade in master (#30114) --- public/app/core/components/form_dropdown/form_dropdown.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/core/components/form_dropdown/form_dropdown.ts b/public/app/core/components/form_dropdown/form_dropdown.ts index 55b99c5fde7..bcdac6ab024 100644 --- a/public/app/core/components/form_dropdown/form_dropdown.ts +++ b/public/app/core/components/form_dropdown/form_dropdown.ts @@ -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 {