@@ -295,9 +295,9 @@ describe('Select.vue', () => {
295
295
expect ( vm . $refs . select . filteredOptions ) . toEqual ( [ 'bar' , 'baz' ] )
296
296
} )
297
297
298
- it ( 'should not filter the array of strings if filterOptions is false' , ( ) => {
298
+ it ( 'should not filter the array of strings if filterable is false' , ( ) => {
299
299
const vm = new Vue ( {
300
- template : `<div><v-select ref="select" :filter-options ="false" :options="['foo','bar','baz']" v-model="value"></v-select></div>` ,
300
+ template : `<div><v-select ref="select" :filterable ="false" :options="['foo','bar','baz']" v-model="value"></v-select></div>` ,
301
301
data : { value : 'foo' }
302
302
} ) . $mount ( )
303
303
vm . $refs . select . search = 'ba'
@@ -897,9 +897,9 @@ describe('Select.vue', () => {
897
897
expect ( vm . $children [ 0 ] . mutableOptions ) . toEqual ( [ 'one' , 'two' , 'three' ] )
898
898
} )
899
899
900
- it ( 'should add a freshly created option/tag to the options list when pushTags is true and filterOptions is false' , ( ) => {
900
+ it ( 'should add a freshly created option/tag to the options list when pushTags is true and filterable is false' , ( ) => {
901
901
const vm = new Vue ( {
902
- template : '<div><v-select :options="options" push-tags :value="value" :filter-options ="false" :multiple="true" :taggable="true"></v-select></div>' ,
902
+ template : '<div><v-select :options="options" push-tags :value="value" :filterable ="false" :multiple="true" :taggable="true"></v-select></div>' ,
903
903
components : { vSelect} ,
904
904
data : {
905
905
value : [ 'one' ] ,
@@ -926,9 +926,9 @@ describe('Select.vue', () => {
926
926
expect ( vm . $children [ 0 ] . mutableOptions ) . toEqual ( [ 'one' , 'two' ] )
927
927
} )
928
928
929
- it ( 'wont add a freshly created option/tag to the options list when pushTags is false and filterOptions is false' , ( ) => {
929
+ it ( 'wont add a freshly created option/tag to the options list when pushTags is false and filterable is false' , ( ) => {
930
930
const vm = new Vue ( {
931
- template : '<div><v-select :options="options" :value="value" :multiple="true" :filter-options ="false" :taggable="true"></v-select></div>' ,
931
+ template : '<div><v-select :options="options" :value="value" :multiple="true" :filterable ="false" :taggable="true"></v-select></div>' ,
932
932
components : { vSelect} ,
933
933
data : {
934
934
value : [ 'one' ] ,
@@ -985,7 +985,7 @@ describe('Select.vue', () => {
985
985
it ( 'should select an existing option if the search string matches an objects label from options when filter-options is false' , ( done ) => {
986
986
let two = { label : 'two' }
987
987
const vm = new Vue ( {
988
- template : '<div><v-select :options="options" taggable :filter-options ="false"></v-select></div>' ,
988
+ template : '<div><v-select :options="options" taggable :filterable ="false"></v-select></div>' ,
989
989
data : {
990
990
options : [ { label : 'one' } , two ]
991
991
}
@@ -1020,9 +1020,9 @@ describe('Select.vue', () => {
1020
1020
} )
1021
1021
} )
1022
1022
1023
- it ( 'should not reset the selected value when the options property changes when filterOptions is false' , ( done ) => {
1023
+ it ( 'should not reset the selected value when the options property changes when filterable is false' , ( done ) => {
1024
1024
const vm = new Vue ( {
1025
- template : '<div><v-select :options="options" :value="value" :multiple="true" :filter-options ="false" taggable></v-select></div>' ,
1025
+ template : '<div><v-select :options="options" :value="value" :multiple="true" :filterable ="false" taggable></v-select></div>' ,
1026
1026
components : { vSelect} ,
1027
1027
data : {
1028
1028
value : [ { label : 'one' } ] ,
0 commit comments