2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-13 08:32:26 +03:00

Added fix for #732

This commit is contained in:
Marek Meyer
2019-02-08 13:49:54 +01:00
parent 4d78e7a956
commit 18416ba6e2
3 changed files with 4 additions and 4 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -906,8 +906,8 @@
isOptionSelected(option) {
let selected = false
this.valueAsArray.forEach(value => {
if (typeof value === 'object') {
selected = this.optionObjectComparator(value, option)
if (typeof value === 'object' && this.optionObjectComparator(value, option)) {
selected = true
} else if (value === option || value === option[this.index]) {
selected = true
}