diff --git a/src/components/Select.vue b/src/components/Select.vue index 1b2573c..e7bf99b 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -257,7 +257,7 @@ * Enable/disable creating options from searchInput. * @type {Boolean} */ - tagable: { + taggable: { type: Boolean, default: false }, @@ -442,7 +442,7 @@ typeAheadSelect() { if( this.filteredOptions[ this.typeAheadPointer ] ) { this.select( this.filteredOptions[ this.typeAheadPointer ] ); - } else if (this.tagable && this.search.length){ + } else if (this.taggable && this.search.length){ let option = this.createOption(this.search) this.isAdding = true this.$set('options', [option, ...this.options]) diff --git a/test/unit/Select.spec.js b/test/unit/Select.spec.js index f2b9ebf..7c235b3 100644 --- a/test/unit/Select.spec.js +++ b/test/unit/Select.spec.js @@ -213,9 +213,9 @@ describe('Select.vue', () => { }) }) - it('can adding option if tagable enabled and search is not empty', () => { + it('can adding option if taggable enabled and search is not empty', () => { const vm = new Vue({ - template: '