Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 00574cf

Browse filesBrowse files
committed
fix: CSelect: fix assigning falsy value coreui#83
1 parent a1a8203 commit 00574cf
Copy full SHA for 00574cf

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/components/form/CSelect.vue

Copy file name to clipboardExpand all lines: src/components/form/CSelect.vue
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.