Skip to content

Commit ea2ce98

Browse files
committed
If clicked element disappears, hide jTippy
1 parent 93fe313 commit ea2ce98

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

jTippy.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,14 @@
309309

310310
helper.positionDebug('-- Start positioning --');
311311

312+
//if no longer exists
313+
if( !helper.dom_wrapped.length )
314+
{
315+
helper.positionDebug('Elem no longer exists. Removing tooltip');
316+
317+
helper.hide(true);
318+
}
319+
312320
//cache reference to arrow
313321
let arrow = helper.tooltip.find('.jt-arrow');
314322

jTippy.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)