We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
null
1 parent 446280c commit cbf94a7Copy full SHA for cbf94a7
src/runtime/components/forms/SelectMenu.vue
@@ -362,14 +362,16 @@ export default defineComponent({
362
} else {
363
return null
364
}
365
- } else {
+ } else if (props.modelValue) {
366
if (props.valueAttribute) {
367
const option = props.options.find(option => option[props.valueAttribute] === props.modelValue)
368
return option ? option[props.optionAttribute] : null
369
370
return ['string', 'number'].includes(typeof props.modelValue) ? props.modelValue : props.modelValue[props.optionAttribute]
371
372
373
+
374
+ return null
375
})
376
377
const selectClass = computed(() => {
0 commit comments