it will make a new bug, so revert
This commit is contained in:
parent
f0c9ece693
commit
bef01c91c1
1 changed files with 5 additions and 8 deletions
|
@ -359,7 +359,7 @@
|
|||
/**
|
||||
* Not sure why use hasDefaultSelected #4273
|
||||
* */
|
||||
// let hasDefaultSelected = slotOptions.some(option => this.query === option.key);
|
||||
let hasDefaultSelected = slotOptions.some(option => this.query === option.key);
|
||||
for (let option of slotOptions) {
|
||||
|
||||
const cOptions = option.componentOptions;
|
||||
|
@ -383,13 +383,10 @@
|
|||
if (cOptions.children.length > 0) selectOptions.push({...option});
|
||||
} else {
|
||||
// ignore option if not passing filter
|
||||
//if (!hasDefaultSelected) {
|
||||
// const optionPassesFilter = this.filterable ? this.validateOption(cOptions) : option;
|
||||
// if (!optionPassesFilter) continue;
|
||||
//}
|
||||
|
||||
if (!hasDefaultSelected) {
|
||||
const optionPassesFilter = this.filterable ? this.validateOption(cOptions) : option;
|
||||
if (!optionPassesFilter) continue;
|
||||
}
|
||||
|
||||
optionCounter = optionCounter + 1;
|
||||
selectOptions.push(this.processOption(option, selectedValues, optionCounter === currentIndex));
|
||||
|
|
Loading…
Add table
Reference in a new issue