mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Fixed #4681 - Add empty option check to some components
This commit is contained in:
parent
0d1beb2f1c
commit
f959976b70
5 changed files with 5 additions and 5 deletions
|
@ -528,7 +528,7 @@ export default {
|
|||
return this.isValidOption(processedOption) && this.getProccessedOptionLabel(processedOption).toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale));
|
||||
},
|
||||
isValidOption(processedOption) {
|
||||
return !!processedOption && !this.isOptionDisabled(processedOption.option);
|
||||
return ObjectUtils.isNotEmpty(processedOption) && !this.isOptionDisabled(processedOption.option);
|
||||
},
|
||||
isValidSelectedOption(processedOption) {
|
||||
return this.isValidOption(processedOption) && this.isSelected(processedOption);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue