Skip to content

Commit f828d01

Browse files
authored
Merge pull request #967 from dnum-mi/fix/dsfr
fix: 🐛 dsfr-select type
2 parents c7aaccd + c3776e0 commit f828d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DsfrSelect/DsfrSelect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const messageType = computed(() => {
7171
@change="$emit('update:modelValue', ($event.target as HTMLInputElement)?.value)"
7272
>
7373
<option
74-
:selected="modelValue == null || !options.some(option => typeof option !== 'object' ? option !== modelValue : option.value === modelValue)"
74+
:selected="!options.some(option => typeof option !== 'object' || option === null ? option === modelValue : option.value === modelValue)"
7575
disabled
7676
hidden
7777
>

0 commit comments

Comments
 (0)