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.
1 parent bb4d8d4 commit 62ba638Copy full SHA for 62ba638
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