mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +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
|
@ -804,7 +804,7 @@ export default {
|
|||
return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
|
||||
},
|
||||
isValidOption(option) {
|
||||
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
||||
return ObjectUtils.isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
||||
},
|
||||
isValidSelectedOption(option) {
|
||||
return this.isValidOption(option) && this.isSelected(option);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue