We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 899ea4f + cb494c5 commit 9a0d7aaCopy full SHA for 9a0d7aa
src/multiselectMixin.js
@@ -241,12 +241,13 @@ module.exports = {
241
},
242
computed: {
243
filteredOptions () {
244
+ let search = this.search ? this.search : ''
245
var options = this.hideSelected
246
? this.options.filter(this.isNotSelected)
247
: this.options
- options = this.$options.filters.filterBy(options, this.search)
248
- if (this.taggable && this.search.length > 0 && !this.isExistingOption(this.search)) {
249
- options.unshift({ isTag: true, label: this.search })
+ options = this.$options.filters.filterBy(options, search)
+ if (this.taggable && search.length > 0 && !this.isExistingOption(search)) {
250
+ options.unshift({ isTag: true, label: search })
251
}
252
return options
253
0 commit comments