diff --git a/packages/@ourworldindata/grapher/src/footer/Footer.tsx b/packages/@ourworldindata/grapher/src/footer/Footer.tsx index d7d469596bf..f6ce00b96ea 100644 --- a/packages/@ourworldindata/grapher/src/footer/Footer.tsx +++ b/packages/@ourworldindata/grapher/src/footer/Footer.tsx @@ -424,8 +424,10 @@ export class Footer< sourcesElement.scrollIntoView({ behavior: "smooth", }) + this.manager.isInFullScreenMode = false } else if (sourcesElement) { window.location.hash = "#" + sourcesIdOnDataPage + this.manager.isInFullScreenMode = false } else { this.manager.isSourcesModalOpen = true } diff --git a/packages/@ourworldindata/grapher/src/footer/FooterManager.ts b/packages/@ourworldindata/grapher/src/footer/FooterManager.ts index 85462ee8aba..182dce9ca28 100644 --- a/packages/@ourworldindata/grapher/src/footer/FooterManager.ts +++ b/packages/@ourworldindata/grapher/src/footer/FooterManager.ts @@ -16,4 +16,5 @@ export interface FooterManager extends TooltipManager, ActionButtonsManager { framePaddingHorizontal?: number isGeneratingThumbnail?: boolean fontSize?: number + isInFullScreenMode?: boolean }