Skip to content

Commit

Permalink
fix(VOverlay): don't try to run scrollStrategy after closing
Browse files Browse the repository at this point in the history
fixes #16569
  • Loading branch information
KaelWD committed Feb 14, 2023
1 parent 02d7ac3 commit 14c7640
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function useScrollStrategies (

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

0 comments on commit 14c7640

Please sign in to comment.