2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-16 09:10:33 +03:00

fix isValueEmpty bug when working with integers

This commit is contained in:
Jeff
2018-01-28 17:54:25 -08:00
parent 79893024b5
commit b92428101f
2 changed files with 17 additions and 4 deletions
+2 -2
View File
@@ -1080,9 +1080,9 @@
isValueEmpty() {
if (this.mutableValue) {
if (typeof this.mutableValue === 'object') {
return !Object.keys(this.mutableValue).length
return ! Object.keys(this.mutableValue).length
}
return !this.mutableValue.length
return ! this.valueAsArray.length
}
return true;