unicorn/prefer-dom-node-append

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper
2021-01-02 20:15:30 -08:00
parent 3bd702563c
commit e763993574

View File

@@ -49,7 +49,7 @@ var customTooltips = function (tooltip) {
tooltipEl.style.fontStyle = tooltip._bodyFontStyle;
// append Tooltip next to canvas-containing box
tooltipEl.ancestor = this._chart.canvas.closest(".box[id]").parentNode;
tooltipEl.ancestor.appendChild(tooltipEl);
tooltipEl.ancestor.append(tooltipEl);
}
// Hide if no tooltip