Skip to content

Commit 23fa3d8

Browse files
ci: apply automated fixes
1 parent 177bc3d commit 23fa3d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/router-core/src/scroll-restoration.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ export function getCssSelector(el: any): string {
8787
const path = []
8888
let parent: HTMLElement
8989
while ((parent = el.parentNode)) {
90-
path.push(`${el.tagName}:nth-child(${Array.prototype.indexOf.call(parent.children, el) + 1})`)
90+
path.push(
91+
`${el.tagName}:nth-child(${Array.prototype.indexOf.call(parent.children, el) + 1})`,
92+
)
9193
el = parent
9294
}
9395
return `${path.reverse().join(' > ')}`.toLowerCase()

0 commit comments

Comments
 (0)