-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(switch): ts to sfc #504
Conversation
Thank you for following the naming conventions! 🙏 |
@@ -29,6 +29,6 @@ const { componentRef } = useComponentRef<HTMLInputElement | null>() | |||
v-bind="$attrs" | |||
ref="componentRef" | |||
:data-state="getState(inject.checked.value)" | |||
:data-disabled="inject.disabled ? '' : undefined" | |||
:data-disabled="inject.disabled?.value ? '' : undefined" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please validate this, and why it always appears without using .value
inside the <template>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inject with .value used. I think the data stays connected up there, otherwise it won't work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ! ❤️
Description
Linked Issues
#492
Additional context