8000 refactor(CFormSelect): allow to add options with value="" · coreui/coreui-vue@7376070 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7376070

Browse files
committed
refactor(CFormSelect): allow to add options with value=""
1 parent 816de1b commit 7376070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/coreui-vue/src/components/form/CFormSelect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const CFormSelect = defineComponent({
160160
...(typeof option === 'object' && {
161161
...(option.disabled && { disabled: option.disabled }),
162162
...(option.selected && { selected: option.selected }),
163-
...(option.value && {
163+
...(option.value !== undefined && {
164164
value: option.value,
165165
...(props.modelValue &&
166166
props.multiple &&

0 commit comments

Comments
 (0)
0