You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Awhile ago I requested a feature for the selector for useColorMode to be able to use a template ref. It was graciously implemented. However, it wasn't until recently when I actually went to use the ability. I am not sure if this worked pre v10, but in v10, it does not quite work.
The first issue is that the typings are a bit off, it doesn't recognize that 'el' is valid. Even though I believe it should be... "MaybeRefOrGetter<HTMLElement | null | undefined>" should be valid since this is a Ref.
The second issue is that is simply doesn't work. I would like this functionality as it means you don't have to float your ui with selectors. As the template ref will magically disappear. The alternative would be needing to make some ids. Which isn't bad, but if you're not going to use them anyways...
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
Describe the bug
Awhile ago I requested a feature for the selector for useColorMode to be able to use a template ref. It was graciously implemented. However, it wasn't until recently when I actually went to use the ability. I am not sure if this worked pre v10, but in v10, it does not quite work.
The first issue is that the typings are a bit off, it doesn't recognize that 'el' is valid. Even though I believe it should be... "MaybeRefOrGetter<HTMLElement | null | undefined>" should be valid since this is a Ref.
The second issue is that is simply doesn't work. I would like this functionality as it means you don't have to float your ui with selectors. As the template ref will magically disappear. The alternative would be needing to make some ids. Which isn't bad, but if you're not going to use them anyways...
Reproduction
view above
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: