未验证 提交 11bace38 编写于 作者: C Christine Chambers 提交者: GitHub

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

Fix sticky tooltips on nvd3 vizzes
...@@ -166,9 +166,9 @@ export function generateBubbleTooltipContent({ ...@@ -166,9 +166,9 @@ export function generateBubbleTooltipContent({
} }
export function hideTooltips() { export function hideTooltips() {
const target = document.querySelector('.nvtooltip'); const targets = document.querySelectorAll('.nvtooltip');
if (target) { if (targets.length > 0) {
target.style.opacity = 0; targets.forEach(t => t.remove());
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册