Skip to content

Commit 00574cf

Browse files
committed
fix: CSelect: fix assigning falsy value #83
1 parent a1a8203 commit 00574cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/form/CSelect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export default {
223223
if (this.$attrs.multiple !== undefined) return
224224
const optionIndex = e.target.selectedOptions[0].dataset.key
225225
const option = this.options[optionIndex]
226-
const value = option.value || option
226+
const value = option.value !== undefined ? option.value : option
227227
this.state = value
228228
this.$emit('update:value', value, e)
229229
}

0 commit comments

Comments
 (0)