mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
String search updates
This commit is contained in:
parent
8018dbb0d6
commit
680e5147f2
3 changed files with 3 additions and 3 deletions
|
@ -811,7 +811,7 @@ export default {
|
|||
return DomHandler.getFocusableElements(this.overlay, ':not([data-p-hidden-focusable="true"])').length > 0;
|
||||
},
|
||||
isOptionMatched(option) {
|
||||
return this.isValidOption(option) && this.getOptionLabel(option)?.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
|
||||
return this.isValidOption(option) && typeof this.getOptionLabel(option) === 'string' && this.getOptionLabel(option)?.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
|
||||
},
|
||||
isValidOption(option) {
|
||||
return ObjectUtils.isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue