Skip to content

Commit

Permalink
Merge branch 'dev' into fix-17898
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwu9145 committed Aug 29, 2023
2 parents e05f8ad + 08c806c commit 2672bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vuetify/src/composables/resizeObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export function useResizeObserver (callback?: ResizeObserverCallback, box: 'cont

watch(resizeRef, (newValue, oldValue) => {
if (oldValue) {
observer.unobserve(refElement(oldValue))
observer.unobserve(refElement(oldValue) as Element)
contentRect.value = undefined
}

if (newValue) observer.observe(refElement(newValue))
if (newValue) observer.observe(refElement(newValue) as Element)
}, {
flush: 'post',
})
Expand Down

0 comments on commit 2672bd0

Please sign in to comment.