Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
sponsorship: Don't preserve scroll position on reload.
Aman Agrawal1b804cd0dd74
diff --git a/web/src/billing/sponsorship.ts b/web/src/billing/sponsorship.tsindex 6a569c5be5d..44af76f1d91 100644--- a/web/src/billing/sponsorship.ts+++ b/web/src/billing/sponsorship.ts@@ -97,5 +97,14 @@ export function initialize(): void {}$(() => {+ // Don't preserve scroll position on reload. This allows us to+ // show the sponsorship pending message after user submits the+ // form otherwise the sponsorship pending message is partially+ // hidden due to browser preserving scroll position.+ // https://developer.mozilla.org/en-US/docs/Web/API/History/scrollRestoration+ if (history.scrollRestoration) {+ history.scrollRestoration = "manual";+ }+initialize();});