We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 559a71f commit e1ad6d0Copy full SHA for e1ad6d0
src/functions/useSize/stories/useSize.md
@@ -65,10 +65,10 @@ function useSize(
65
66
watch(observedEntry, () => {
67
if (!observedEntry.value) return
68
- const { width, height } = observedEntry.value.contentRect
69
- width.value = width
70
- height.value = height
+ width.value = observedEntry.value.contentRect.width
+ height.value = observedEntry.value.contentRect.height
71
})
+
72
return { elRef, width, height }
73
}
74
0 commit comments