Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-05-27 20:37:11 +0300
committerGitHub <noreply@github.com>2021-05-27 20:37:11 +0300
commitb20dc4dc0e2c535e6a151e73a8631b1dc09d4821 (patch)
treea8079d1916341776db9ac824d97e043cae0f26d6 /plugins/Dashboard
parenta55c3fbfcb87141f83d223a4fa9c0002c35deee8 (diff)
Ensure to close open tooltips when widget is maximized (#17629)
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r--plugins/Dashboard/javascripts/dashboardWidget.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Dashboard/javascripts/dashboardWidget.js b/plugins/Dashboard/javascripts/dashboardWidget.js
index 58de03cad8..890eb7ef28 100644
--- a/plugins/Dashboard/javascripts/dashboardWidget.js
+++ b/plugins/Dashboard/javascripts/dashboardWidget.js
@@ -350,6 +350,9 @@
}
});
this.element.find('div.piwik-graph').trigger('resizeGraph');
+ // remove all previously shown tooltips as they might not be destroyed automatically
+ // see https://github.com/matomo-org/matomo/issues/17625
+ $('.ui-tooltip').remove();
var currentWidget = this.element;
$('body').on('click.dashboardWidget', function (ev) {