@tanstack/react-router 0.0.1-beta.272 → 0.0.1-beta.273
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/build/cjs/RouterProvider.js +5 -3
- package/build/cjs/RouterProvider.js.map +1 -1
- package/build/esm/index.js +5 -3
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +351 -351
- package/build/umd/index.development.js +5 -3
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/RouterProvider.tsx +7 -5
|
@@ -1169,9 +1169,11 @@
|
|
|
1169
1169
|
pathChanged: routerState.location.href !== routerState.resolvedLocation?.href
|
|
1170
1170
|
});
|
|
1171
1171
|
if (document.querySelector) {
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
el
|
|
1172
|
+
if (routerState.location.hash !== '') {
|
|
1173
|
+
const el = document.getElementById(routerState.location.hash);
|
|
1174
|
+
if (el) {
|
|
1175
|
+
el.scrollIntoView();
|
|
1176
|
+
}
|
|
1175
1177
|
}
|
|
1176
1178
|
}
|
|
1177
1179
|
router.pendingMatches = [];
|