isSelected method updated

pull/3770/head
Bahadır Sofuoğlu 2023-03-19 23:41:07 +03:00
parent 0aa31fe64c
commit f429bc04f9
1 changed files with 1 additions and 1 deletions

View File

@ -809,7 +809,7 @@ export default {
return this.isValidOption(option) && this.isSelected(option);
},
isSelected(option) {
return ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
return this.isValidOption(option) && ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
},
findFirstOptionIndex() {
return this.visibleOptions.findIndex((option) => this.isValidOption(option));