fix: coverage
This commit is contained in:
parent
5ec1417f9a
commit
f17d7b6524
|
@ -4,7 +4,8 @@
|
|||
// https://github.com/sveltejs/svelte/issues/6521
|
||||
// Also note tabpanelElement can be null if the element is disconnected immediately after connected
|
||||
export function resetScrollTopIfPossible (element) {
|
||||
if (element) {
|
||||
/* istanbul ignore else */
|
||||
if (element) { // Makes me nervous not to have this `if` guard
|
||||
element.scrollTop = 0
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue