mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
isSelected method updated
This commit is contained in:
parent
0aa31fe64c
commit
f429bc04f9
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue