-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs-infra): reference page restores scroll position or goes top …
…when no anchor (#56478) This contains follow-up fixes to 2a24397. This commit updates scrolling on references page to scroll to the top when there is no anchor in the URL. The behavior after the above commit would be that the position doesn't change from whatever the previous page was (potentially scrolled to the bottom). In addition, this restores the previous scroll position when traversing through browser history rather than always scrolling to the fragment. PR Close #56478
- Loading branch information
1 parent
67b2c33
commit f8654bd
Showing
2 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters