-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Typescript error on Switch and Listbox v-model in VSCode using Volar #368
Comments
I have the same issue and it is causing my build to fail because of tsc. |
Would you like a PR to fix this? I think this should fix it:
change this:
to:
|
@pingustar that would be awesome, can you create a PR against the |
Looks like the difference between Listbox and RadioGroup is here: headlessui/packages/@headlessui-vue/src/components/radio-group/radio-group.ts Lines 62 to 69 in 0534b2e
headlessui/packages/@headlessui-vue/src/components/radio-group/radio-group.ts Lines 230 to 238 in 0534b2e
headlessui/packages/@headlessui-vue/src/components/listbox/listbox.ts Lines 75 to 82 in 0534b2e
headlessui/packages/@headlessui-vue/src/components/listbox/listbox.ts Lines 444 to 452 in 0534b2e
RadioGroup doesn't have a default for |
What package within Headless UI are you using?
@headlessui/vue
What version of that package are you using?
1.1.0
What browser are you using?
Chrome
Reproduction repository
https://github.com/ananni13/test-headlessui
So this is just an IDE issue, in VSCode (using Volar), v-model on the Switch component shows this error:
The text was updated successfully, but these errors were encountered: