Parcourir la source

fix(elasticsearch): fixed query editor issue with elasticsearch

Torkel Ödegaard il y a 9 ans
Parent
commit
dfe3806d01
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      public/app/core/directives/metric_segment.js

+ 3 - 1
public/app/core/directives/metric_segment.js

@@ -209,7 +209,9 @@ function (_, $, coreModule) {
             // needs to call this after digest so
             // property is synced with outerscope
             $scope.$$postDigest(function() {
-              $scope.onChange();
+              $scope.$apply(function() {
+                $scope.onChange();
+              });
             });
           };