Remove tooltip when the element is removed from DOM
This commit is contained in:
parent
b0dba481d8
commit
62186bd4bd
@ -677,6 +677,12 @@ define([
|
|||||||
setInterval(UI.clearTooltips, delay);
|
setInterval(UI.clearTooltips, delay);
|
||||||
var checkRemoved = function (x) {
|
var checkRemoved = function (x) {
|
||||||
var out = false;
|
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) {
|
$(x).find('[aria-describedby]').each(function (i, el) {
|
||||||
var id = el.getAttribute('aria-describedby');
|
var id = el.getAttribute('aria-describedby');
|
||||||
if (id.indexOf('tippy-tooltip-') !== 0) { return; }
|
if (id.indexOf('tippy-tooltip-') !== 0) { return; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user