瀏覽代碼

Fix https://github.com/grafana/grafana/issues/13387 metric segment
options displays after blur

Jon Ferreira 7 年之前
父節點
當前提交
5fd24e2435
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      public/app/core/directives/metric_segment.ts

+ 3 - 0
public/app/core/directives/metric_segment.ts

@@ -118,6 +118,9 @@ export function metricSegment($compile, $sce) {
       };
 
       $scope.matcher = function(item) {
+        if (linkMode) {
+          return false;
+        }
         let str = this.query;
         if (str[0] === '/') {
           str = str.substring(1);