Skip to content

Commit 7dde9ab

Browse files
Key the annotations each loop by annotationKey for stable dom nodes
1 parent 4040196 commit 7dde9ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/app/templates/components/line-chart.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<g aria-hidden="true" class="y-axis axis" transform="translate({{this.yAxisOffset}}, 0)"></g>
2828
</svg>
2929
<div data-test-annotations class="line-chart-annotations" style={{this.chartAnnotationsStyle}}>
30-
{{#each this.processedAnnotations as |annotation|}}
30+
{{#each this.processedAnnotations key=this.annotationKey as |annotation|}}
3131
<div data-test-annotation class="chart-annotation {{annotation.iconClass}} {{annotation.staggerClass}}" style={{annotation.style}}>
3232
<button
3333
type="button"

0 commit comments

Comments
 (0)