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:
parent
7f6980541c
commit
7e914a5d1e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user