diff --git a/src/composables/useScrollPosition.js b/src/composables/useScrollPosition.js index f1d6356d9..6a5e43b18 100644 --- a/src/composables/useScrollPosition.js +++ b/src/composables/useScrollPosition.js @@ -26,7 +26,7 @@ export function useScrollPosition() { const scrollIntoView = async (element, options) => { inProgress.value = true - await element.scrollIntoView(options) + await element.scrollIntoViewIfNeeded(options) inProgress.value = false }