diff --git a/src/components/Select.vue b/src/components/Select.vue index c8f29b5..6e1603b 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -504,6 +504,16 @@ default: false }, + /** + * When true, existing options will be filtered + * by the search text. + * @type {Boolean} + */ + filterOptions: { + type: Boolean, + default: true + }, + /** * User defined function for adding Options * @type {Function} @@ -887,6 +897,9 @@ * @return {array} */ filteredOptions() { + if (this.filterOptions === false) { + return this.mutableOptions + } let options = this.mutableOptions.filter((option) => { if (typeof option === 'object' && option.hasOwnProperty(this.label)) { return option[this.label].toLowerCase().indexOf(this.search.toLowerCase()) > -1