[Bug]: ListboxRoot a type error when included in defineComponent
components list
#1403
Labels
bug
Something isn't working
defineComponent
components list
#1403
Environment
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-zdiydb?file=src%2Fcomponents%2FListBoxTypeError.vue
Steps to reproduce
npm run type-check
ListboxTypeError.vue
whereListboxRoot
is included indefineComponent
's components listDescribe the bug
When a component that uses
ListboxRoot
is authored viadefineComponent
(and thusListboxRoot
is included incomponents
) this will trigger a type error coming fromListboxRoot
. The component works as expected, there's just that type error (that causes e.g. pipeline failures). Seems to be very similar to an earlier issue #885 withAccordionRoot
.Using a script setup authoring (
ListboxNoError
in reproduction example) the type error doesn't occur and everything works as expected.The error seems to point to mismatch between
Readonly<InternalSlots>
and ListboxRoot's actual types (?).Expected behavior
No type errors when
ListboxRoot
is used indefineComponent
's components option.Context & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: