Skip to content

Commit

Permalink
Scroll to the top of the page when component mounts (#52925)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldcain authored May 18, 2021
1 parent abe15f4 commit f723d1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/my-sites/checkout/upsell-nudge/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f723d1a

Please sign in to comment.