Remove tooltip when the element is removed from DOM

pull/1/head
yflory 2018-03-05 11:19:01 +01:00
parent b0dba481d8
commit 62186bd4bd
1 changed files with 6 additions and 0 deletions

View File

@ -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; }