We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8a1b630 + e280efd commit 28f7d58Copy full SHA for 28f7d58
modules/createRouter.js
@@ -344,7 +344,7 @@ function createRouter(options) {
344
345
// Record the scroll position as early as possible to
346
// get it before browsers try update it automatically.
347
- if (prevPath && action !== LocationActions.REPLACE)
+ if (prevPath && action === LocationActions.PUSH)
348
this.recordScrollPosition(prevPath);
349
350
var match = this.match(path);
0 commit comments