Merge pull request #3770 from primefaces/issue-3541

Dropdown: selected disable option issue fixed
pull/3774/merge
Tuğçe Küçükoğlu 2023-03-20 14:42:08 +03:00 committed by GitHub
commit d0e4120c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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));