fix(deep-dive): reset scroll position when opening a new country (#2883)

The panel reuses the same DOM element, so scroll position persisted
across countries. Opening a second country after scrolling to the
bottom of the first would start at the bottom.
This commit is contained in:
Elie Habib
2026-04-09 22:01:00 +04:00
committed by GitHub
parent 49eeb0062f
commit a4ded3f5da

View File

@@ -193,6 +193,7 @@ export class CountryDeepDivePanel implements CountryBriefPanel {
this.economicIndicators = [];
this.infrastructureByType.clear();
this.renderSkeleton(country, code, score, signals);
this.content.scrollTop = 0;
this.open();
}