From b20dc4dc0e2c535e6a151e73a8631b1dc09d4821 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Thu, 27 May 2021 19:37:11 +0200 Subject: Ensure to close open tooltips when widget is maximized (#17629) --- plugins/Dashboard/javascripts/dashboardWidget.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Dashboard') 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) { -- cgit v1.2.3