Tweaking how title elements are created for tooltips
Using Snap().el was leading to several <svg> elements being created on the page
This commit is contained in:
@@ -61,7 +61,7 @@ export default {
|
||||
.addClass('repeat-label');
|
||||
|
||||
if (tooltipStr) {
|
||||
tooltip = Snap().el('title')
|
||||
tooltip = this.container.el('title')
|
||||
.append(this.container.text(0, 0, tooltipStr));
|
||||
label.append(tooltip);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user