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.
2 parents 0112ac7 + 62ba638 commit b163be1Copy full SHA for b163be1
src/components/DsfrSelect/DsfrSelect.vue
@@ -71,7 +71,7 @@ const messageType = computed(() => {
71
@change="$emit('update:modelValue', ($event.target as HTMLInputElement)?.value)"
72
>
73
<option
74
- :selected="modelValue == null"
+ :selected="modelValue == null || !options.some(option => typeof option !== 'object' ? option !== modelValue : option.value === modelValue)"
75
disabled
76
hidden
77
0 commit comments