Weird issue passing through slotProps in a render function #7913
Unanswered
craigrileyuk
asked this question in
Help/Questions
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm just messing around with Vuetify HOCs and trying to pass through slots when using a render function (simplified example):
I can get it to work (see the top example on v-icon), but the problem is, why does isFocused not have any ref unwrapping on it in the template when using it in a Javascript statement? If I use isFocused like in a standard slot, it doesn't work since it's accessing the Ref object rather than the Ref value, so hence I have to use isFocused.value in the template to access the value.
Weirdly enough, if I just dump
{{ isFocused }}
on the page directly, then the ref unwraps and it shows 'true' or 'false' as expected.I'd prefer to have the usage identical to using a slot inside VTextField directly. Any way to make this happen?
EDIT: Just found out via experimentation that this is a Vuetify bug since the same behaviour is present in a direct usage of scoped slots with v-text-field.
Beta Was this translation helpful? Give feedback.
All reactions