2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-04 06:32:23 +03:00
added regression test to ensure values are deleted properly
This commit is contained in:
Jeff Sagal
2016-03-11 14:38:19 -08:00
parent f0f7c671ce
commit 3b60efa9b7
2 changed files with 35 additions and 2 deletions
+2 -2
View File
@@ -288,8 +288,8 @@
},
maybeDeleteValue() {
if( ! this.$els.search.value.length ) {
this.value.pop();
if( ! this.$els.search.value.length && this.value ) {
return this.multiple ? this.value.pop() : this.$set('value', null)
}
}
},