Skip to content

Commit 79e49b6

Browse files
authored
Fix selection when value is empty string (#2075)
Use single quote
1 parent 439c99d commit 79e49b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MdField/MdSelect/MdOption.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
return this.MdOptgroup.disabled || this.disabled
4040
},
4141
key () {
42-
let isSet = (this.value || this.value === 0 || this.value === false)
42+
let isSet = (this.value || this.value === 0 || this.value === false || this.value === '')
4343
return isSet ? this.value : this.uniqueId
4444
},
4545
inputLabel () {

0 commit comments

Comments
 (0)