ソースを参照

Fixed graph tooltip lingering when changing dashboard using keyboard, Fixes #1700

Torkel Ödegaard 10 年 前
コミット
7a95451288
1 ファイル変更8 行追加2 行削除
  1. 8 2
      public/app/directives/bodyClass.js

+ 8 - 2
public/app/directives/bodyClass.js

@@ -1,8 +1,9 @@
 define([
   'angular',
-  'lodash'
+  'lodash',
+  'jquery'
 ],
-function (angular, _) {
+function (angular, _, $) {
   'use strict';
 
   angular
@@ -13,6 +14,11 @@ function (angular, _) {
 
           var lastHideControlsVal;
 
+          // tooltip removal fix
+          $scope.$on("$routeChangeSuccess", function() {
+            $("#tooltip").remove();
+          });
+
           $scope.$watch('submenuEnabled', function() {
             if (!$scope.dashboard) {
               return;