@next-core/brick-kit 2.99.1 → 2.99.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -9576,7 +9576,10 @@ class Router {
9576
9576
  portal.length > 0 && mountTree(portal, mountPoints.portal);
9577
9577
  afterMountTree(mountPoints.main);
9578
9578
  afterMountTree(mountPoints.portal);
9579
- afterMountTree(mountPoints.bg);
9579
+ afterMountTree(mountPoints.bg); // Scroll to top after each rendering.
9580
+ // See https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/guides/scroll-restoration.md
9581
+
9582
+ window.scrollTo(0, 0);
9580
9583
 
9581
9584
  if (!failed) {
9582
9585
  _this3.locationContext.handlePageLoad();
@@ -9586,11 +9589,8 @@ class Router {
9586
9589
  _this3.locationContext.resolver.scheduleRefreshing();
9587
9590
 
9588
9591
  _this3.locationContext.handleMessage();
9589
- } // Scroll to top after each rendering.
9590
- // See https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/guides/scroll-restoration.md
9591
-
9592
+ }
9592
9593
 
9593
- window.scrollTo(0, 0);
9594
9594
  pageTracker === null || pageTracker === void 0 ? void 0 : pageTracker(locationContext.getCurrentMatch().path); // analytics page_view event
9595
9595
 
9596
9596
  userAnalytics.event("page_view", _objectSpread({