From f723d1ac68fbabc6770f4e890781a34a375d6495 Mon Sep 17 00:00:00 2001 From: Michael Cain Date: Mon, 17 May 2021 20:31:08 -0400 Subject: [PATCH] Scroll to the top of the page when component mounts (#52925) --- client/my-sites/checkout/upsell-nudge/index.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/my-sites/checkout/upsell-nudge/index.jsx b/client/my-sites/checkout/upsell-nudge/index.jsx index 410ee7088a174..c61f182eeb5fe 100644 --- a/client/my-sites/checkout/upsell-nudge/index.jsx +++ b/client/my-sites/checkout/upsell-nudge/index.jsx @@ -98,6 +98,10 @@ export class UpsellNudge extends React.Component { showPurchaseModal: false, }; + componentDidMount() { + window.scrollTo( 0, 0 ); + } + render() { const { selectedSiteId, isLoading, hasProductsList, hasSitePlans, upsellType } = this.props;