Skip to content

Commit c96105d

Browse files
committedJan 30, 2025
fix: no logs
1 parent a65f770 commit c96105d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎packages/react-router/src/scroll-restoration.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ export function restoreScroll(
113113
for (const elementSelector in elementEntries) {
114114
const entry = elementEntries[elementSelector]!
115115
if (elementSelector === 'window') {
116-
console.log('windowRestored', entry)
117116
window.scrollTo({
118117
top: entry.scrollY,
119118
left: entry.scrollX,
@@ -142,7 +141,6 @@ export function restoreScroll(
142141
(window.history.state || {}).__hashScrollIntoViewOptions ?? true
143142

144143
if (hashScrollIntoViewOptions) {
145-
console.log('scrollIntoView')
146144
const el = document.getElementById(hash)
147145
if (el) {
148146
el.scrollIntoView(hashScrollIntoViewOptions)

0 commit comments

Comments
 (0)
Please sign in to comment.