QOptionGroup
invalid type of options
for typescript
#17710
Labels
area/components
area/typescript
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/vite-plugin
Bugs related to Vite usage with Quasar
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
When using the QOptionGroup component and
options
in conjunction withoption-value
/option-label
(options
list items have different field names thanvalue
/label
), a typescript type checking error occurs, e.g.:What did you expect to happen?
I expect that it's possible to put a list of any objects into
options
, as is implemented e.g. in QSelect.Reproduction URL
https://stackblitz.com/edit/vite-cywbftpt?file=src%2FApp.vue
How to reproduce?
Flavour
Vite Plugin (@quasar/vite-plugin)
Areas
Components (quasar), TypeScript Support
Platforms/Browsers
No response
Quasar info output
No response
Relevant log output
No response
Additional context
In fact it works in a dev environment, it's just the
options
have the wrong type.The text was updated successfully, but these errors were encountered: