Fixed #4681 - Add empty option check to some components

This commit is contained in:
mertsincan 2023-10-24 14:06:14 +01:00
parent 0d1beb2f1c
commit f959976b70
5 changed files with 5 additions and 5 deletions

View file

@ -511,7 +511,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);