From 62186bd4bd25a96220d79664bd2f3f2ba3cf2e9d Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 5 Mar 2018 11:19:01 +0100 Subject: [PATCH] Remove tooltip when the element is removed from DOM --- www/common/common-interface.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/common/common-interface.js b/www/common/common-interface.js index 5286a9ac6..d10b289cd 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -677,6 +677,12 @@ define([ setInterval(UI.clearTooltips, delay); var checkRemoved = function (x) { var out = false; + var xId = $(x).attr('aria-describedby'); + if (xId) { + if (xId.indexOf('tippy-tooltip-') === 0) { + return true; + } + } $(x).find('[aria-describedby]').each(function (i, el) { var id = el.getAttribute('aria-describedby'); if (id.indexOf('tippy-tooltip-') !== 0) { return; }