Merge pull request #63 from directus/tooltip

fix tooltip showing when element is deleted
This commit is contained in:
Rijk van Zanten
2020-08-05 14:31:50 -04:00
committed by GitHub

View File

@@ -20,6 +20,7 @@ export function onEnterTooltip(element: HTMLElement, binding: DirectiveBinding)
animateIn(tooltip);
updateTooltip(element, binding, tooltip);
} else {
clearTimeout(tooltipTimer);
tooltipTimer = window.setTimeout(() => {
animateIn(tooltip);
updateTooltip(element, binding, tooltip);