mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user