From 5fc1f57fb5028792365606e9863730161abe26f2 Mon Sep 17 00:00:00 2001 From: Brian Suh Date: Sun, 11 Sep 2016 14:46:17 -0700 Subject: [PATCH] Fix navigation controller In-page navigation has not actually started if the current entry is being replaced. Do not set inPageIndex if replaceEntry is true. --- lib/browser/api/navigation-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser/api/navigation-controller.js b/lib/browser/api/navigation-controller.js index 1260cfb3dac7..fa6c16ebef5b 100644 --- a/lib/browser/api/navigation-controller.js +++ b/lib/browser/api/navigation-controller.js @@ -33,7 +33,7 @@ var NavigationController = (function () { if (this.inPageIndex > -1 && !inPage) { // Navigated to a new page, clear in-page mark. this.inPageIndex = -1 - } else if (this.inPageIndex === -1 && inPage) { + } else if (this.inPageIndex === -1 && inPage && !replaceEntry) { // Started in-page navigations. this.inPageIndex = this.currentIndex }