@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.
@@ -1169,9 +1169,11 @@
1169
1169
  pathChanged: routerState.location.href !== routerState.resolvedLocation?.href
1170
1170
  });
1171
1171
  if (document.querySelector) {
1172
- const el = document.getElementById(routerState.location.hash);
1173
- if (el) {
1174
- el.scrollIntoView();
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 = [];