diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-05-27 20:37:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 20:37:11 +0300 |
commit | b20dc4dc0e2c535e6a151e73a8631b1dc09d4821 (patch) | |
tree | a8079d1916341776db9ac824d97e043cae0f26d6 /plugins/Dashboard | |
parent | a55c3fbfcb87141f83d223a4fa9c0002c35deee8 (diff) |
Ensure to close open tooltips when widget is maximized (#17629)
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r-- | plugins/Dashboard/javascripts/dashboardWidget.js | 3 |
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) { |