Currently, I am using the <q-select>
component and populating it with options fetched from an API. The issue arises when setting the value as the ID of the object, which is a number while the component expects a string, resulting in an error.
<s-select
autocomplete
sorted
v-model="data.id"
options="list"
option-value="value"
option-label="label"
label="Field"
required
/>
Attempting to convert data.id
into a string by using .toString()
within the v-model led to another error.
Seeking guidance on how to resolve this situation. Any suggestions?