Replies: 1 comment 2 replies
-
@appano1 All of that being handled by https://github.com/vueuse/vueuse/blob/main/packages/core/unrefElement/index.ts |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I looked into the source, I saw
currentElement
handles only the case whencurrentRef.value
isComponentPublicInstance
. It doesn't handle when thecurrent.value
itself is anElement
.Additionally, it just ignores the type when itself is
null
orundefined
.https://github.com/radix-vue/radix-vue/blob/c157cb820034f5fef25b3d111841c617bb49642f/packages/radix-vue/src/shared/useForwardExpose.ts#L9-L13
Are they intended or bugs? I'm quite confused because other components that uses
currentElement
don't care about the empty case. Is it fine to ignore the empty case and should I use it only when the component is an instance ofComponentPublicInstance
?Beta Was this translation helpful? Give feedback.
All reactions