Fixed #1255 - Dropdown filter is incorrect when grouped and optionGroupChildren not named "items
parent
1253676112
commit
940d86299c
|
@ -604,7 +604,9 @@ export default {
|
|||
for (let optgroup of this.options) {
|
||||
let filteredSubOptions = FilterService.filter(this.getOptionGroupChildren(optgroup), this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
|
||||
if (filteredSubOptions && filteredSubOptions.length) {
|
||||
filteredGroups.push({...optgroup, ...{items: filteredSubOptions}});
|
||||
let filteredGroup = {...optgroup};
|
||||
filteredGroup[this.optionGroupChildren] = filteredSubOptions;
|
||||
filteredGroups.push(filteredGroup);
|
||||
}
|
||||
}
|
||||
return filteredGroups
|
||||
|
|
Loading…
Reference in New Issue