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
Uh oh!
There was an error while loading. Please reload this page.
-
When I looked into the source, I saw
currentElementhandles only the case whencurrentRef.valueisComponentPublicInstance. It doesn't handle when thecurrent.valueitself is anElement.Additionally, it just ignores the type when itself is
nullorundefined.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
currentElementdon'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