pull/2835/head
mertsincan 2022-08-02 08:41:39 +01:00
parent c733ce6b3b
commit 9985574290
4 changed files with 4 additions and 4 deletions

View File

@ -709,7 +709,7 @@ export default {
return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale) === value.toLocaleLowerCase(this.searchLocale);
},
isValidOption(option) {
return option && !(this.isOptionDisabled(option) || option.optionGroup);
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
},
isSelected(option) {
return ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);

View File

@ -668,7 +668,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) || option.optionGroup);
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
},
isValidSelectedOption(option) {
return this.isValidOption(option) && this.isSelected(option);

View File

@ -493,7 +493,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) || option.optionGroup);
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
},
isValidSelectedOption(option) {
return this.isValidOption(option) && this.isSelected(option);

View File

@ -783,7 +783,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) || option.optionGroup);
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
},
isValidSelectedOption(option) {
return this.isValidOption(option) && this.isSelected(option);