Merge pull request #6805 from lyft/xtinec--fix-sticky-tooltip

Fix sticky tooltips on nvd3 vizzes
This commit is contained in:
Christine Chambers 2019-02-01 15:07:06 -08:00 committed by GitHub
commit 11bace3808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -166,9 +166,9 @@ export function generateBubbleTooltipContent({
}
export function hideTooltips() {
const target = document.querySelector('.nvtooltip');
if (target) {
target.style.opacity = 0;
const targets = document.querySelectorAll('.nvtooltip');
if (targets.length > 0) {
targets.forEach(t => t.remove());
}
}