Skip to content

Commit

Permalink
fix(search) by default filter the options when not lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed Jan 27, 2021
1 parent 6aea4ea commit 686c008
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/component/QsSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,10 @@ export default {
await this.prepareOptions()
doneFn(() => {
const results = this.noClientSearch
? this.opts
: this.opts.filter(this.searchFn(filter))
const haveToSearch = this.noClientSearch ? false : !this.route
const results = haveToSearch
? this.opts.filter(this.searchFn(filter))
: this.opts
this.setOptions(results)
})
}
Expand Down

0 comments on commit 686c008

Please sign in to comment.