Commit f7f65c84102177b9711c42b358eaa563e766b744
1 parent
bc348e7e
reset query only if no slotOptions are present
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/components/select/select.vue
... | ... | @@ -614,13 +614,13 @@ |
614 | 614 | dropVisible(open){ |
615 | 615 | this.broadcast('Drop', open ? 'on-update-popper' : 'on-destroy-popper'); |
616 | 616 | }, |
617 | - selectOptions(options){ | |
617 | + selectOptions(){ | |
618 | 618 | if (this.hasExpectedValue){ |
619 | 619 | this.values = this.values.map(this.getOptionData); |
620 | 620 | this.hasExpectedValue = false; |
621 | 621 | } |
622 | 622 | |
623 | - if (options && options.length === 0){ | |
623 | + if (this.slotOptions && this.slotOptions.length === 0){ | |
624 | 624 | this.query = ''; |
625 | 625 | } |
626 | 626 | } | ... | ... |