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

fix(reduce): do not set $data._value in updateValue if reduce option is set

Closes #1210
This commit is contained in:
schelmo
2020-06-25 19:22:29 +02:00
committed by GitHub
parent 0f79e18b89
commit a21c973e53
2 changed files with 30 additions and 6 deletions
+1 -2
View File
@@ -713,7 +713,7 @@
* @param value
*/
updateValue (value) {
if (this.isTrackingValues) {
if (typeof this.value === 'undefined') {
// Vue select has to manage value
this.$data._value = value;
}
@@ -989,7 +989,6 @@
*/
selectedValue () {
let value = this.value;
if (this.isTrackingValues) {
// Vue select has to manage value internally
value = this.$data._value;