Skip to content

Commit ad06e31

Browse files
author
Eleftherios Pegiadis
committed
Make filter options to not affect taggable vSelects
1 parent 602bffb commit ad06e31

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/Select.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,8 @@
506506
507507
/**
508508
* When true, existing options will be filtered
509-
* by the search text.
509+
* by the search text. Should not be used in conjunction
510+
* with taggable.
510511
* @type {Boolean}
511512
*/
512513
filterOptions: {
@@ -897,8 +898,8 @@
897898
* @return {array}
898899
*/
899900
filteredOptions() {
900-
if (this.filterOptions === false) {
901-
return this.mutableOptions
901+
if (!this.filterOptions && !this.taggable) {
902+
return this.mutableOptions.slice()
902903
}
903904
let options = this.mutableOptions.filter((option) => {
904905
if (typeof option === 'object' && option.hasOwnProperty(this.label)) {

0 commit comments

Comments
 (0)