pull/5456/head
tugcekucukoglu 2024-03-19 17:18:17 +03:00
parent 413efbb2f4
commit 71db0aea00
1 changed files with 1 additions and 1 deletions

View File

@ -777,7 +777,7 @@ export default {
isSelected(option) { isSelected(option) {
const optionValue = this.getOptionValue(option); const optionValue = this.getOptionValue(option);
return (this.modelValue || []).some((value) => this.isEquals(value, optionValue)); return this.multiple ? (this.modelValue || []).some((value) => this.isEquals(value, optionValue)) : this.isEquals(this.modelValue, this.getOptionValue(option));
}, },
findFirstOptionIndex() { findFirstOptionIndex() {
return this.visibleOptions.findIndex((option) => this.isValidOption(option)); return this.visibleOptions.findIndex((option) => this.isValidOption(option));