Skip to content

Commit

Permalink
fix(VOverlay): correc scrollStrategy teardown ordering
Browse files Browse the repository at this point in the history
fixes #19373
  • Loading branch information
KaelWD committed Mar 13, 2024
1 parent 46ed018 commit 4c7d254
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -49,7 +49,7 @@ export function useScrollStrategies (
if (!(data.isActive.value && props.scrollStrategy)) return

scope = effectScope()
await nextTick()
await new Promise(resolve => setTimeout(resolve))
scope.active && scope.run(() => {
if (typeof props.scrollStrategy === 'function') {
props.scrollStrategy(data, props, scope!)
Expand Down

0 comments on commit 4c7d254

Please sign in to comment.