refactoring
This commit is contained in:
parent
b04c6a1e21
commit
a7da2ab3c9
@ -897,13 +897,13 @@ export default {
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (is_string) {
|
||||
this.selected = pre_value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
value: function (selected) {
|
||||
@ -1031,6 +1031,7 @@ export default {
|
||||
let selected = this.selected;
|
||||
this.selected = [];
|
||||
|
||||
if (selected !== undefined) {
|
||||
selected.forEach(function (select, index) {
|
||||
if (this.sorted_options.find(option => option.key == select)) {
|
||||
this.selected.push(select);
|
||||
@ -1038,6 +1039,7 @@ export default {
|
||||
this.selected = [];
|
||||
}
|
||||
}, this);
|
||||
}
|
||||
} else {
|
||||
if (! options.find(option => option == this.selected)) {
|
||||
this.selected = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user