mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
Added fix for #732
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -906,8 +906,8 @@
|
|||||||
isOptionSelected(option) {
|
isOptionSelected(option) {
|
||||||
let selected = false
|
let selected = false
|
||||||
this.valueAsArray.forEach(value => {
|
this.valueAsArray.forEach(value => {
|
||||||
if (typeof value === 'object') {
|
if (typeof value === 'object' && this.optionObjectComparator(value, option)) {
|
||||||
selected = this.optionObjectComparator(value, option)
|
selected = true
|
||||||
} else if (value === option || value === option[this.index]) {
|
} else if (value === option || value === option[this.index]) {
|
||||||
selected = true
|
selected = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user