bumbeishvili / org-chart

Highly customizable org chart. Integrations available for Angular, React, Vue
https://stackblitz.com/edit/web-platform-o5t1ha
MIT License
927 stars 330 forks source link

Why is clearHighlighting() not returning this? #207

Closed hy-net closed 1 year ago

hy-net commented 2 years ago
clearHighlighting() {
    const attrs = this.getChartState();
    attrs.allNodes.forEach(d => {
        d.data._highlighted = false;
        d.data._upToTheRootHighlighted = false;
    })
    this.update(attrs.root)
    // return this; // to make it consistant
}
bumbeishvili commented 2 years ago

That makes sense