We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bdcb75 commit 11a05f0Copy full SHA for 11a05f0
src/scrollToView.ts
@@ -3,7 +3,7 @@ import { findElement } from './findElement'
3
export function scrollToView(e: Element | string | null) {
4
try {
5
if (typeof e === 'string')
6
- e = findElement(e)
+ e = findElement(e) as Element
7
if (!e)
8
return
9
e.scrollIntoView({
0 commit comments