mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed graph tooltip lingering when changing dashboard using keyboard, Fixes #1700
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user