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 c7aaccd + c3776e0 commit f828d01Copy full SHA for f828d01
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 || !options.some(option => typeof option !== 'object' ? option !== modelValue : option.value === modelValue)"
+ :selected="!options.some(option => typeof option !== 'object' || option === null ? option === modelValue : option.value === modelValue)"
75
disabled
76
hidden
77
0 commit comments