-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: scroll behaviour when navigating back to anchor on the same page (…
…#8061) * Move scroll handling from Link to shouldUpdateScroll * Pass all router props to shouldUpdateScroll * Pass saved scroll positions to shouldUpdateScroll * Let scroll-behavior handle everything * Let scroll-behavior also handle element checking * Keep pathname for backwards compatibility * Make tests pass * Don't expose history * Only expose read method * Update docs * Update docs * Lint * Trigger travis rebuild (empty commit) * remove TODO, scrollbehaviour in fact does that
- Loading branch information
1 parent
7f88243
commit ef44cff
Showing
5 changed files
with
34 additions
and
39 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
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
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