mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-19 09:50:33 +03:00
- better background color for 'active' dropdown option
- simplify conditional logic in select() - less nested conditionals - tagging logic moved to createOption method - add option:created event - pull up push tags logic to it's own method - improve isOptionSelected so that functionality is exactly the same as v1 - hitting enter on an already added tag will remove it from the value instead of doing nothing
This commit is contained in:
+634
-616
File diff suppressed because it is too large
Load Diff
@@ -813,6 +813,7 @@ describe('Select.vue', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should not reset the selected value when the options property changes', (done) => {
|
it('should not reset the selected value when the options property changes', (done) => {
|
||||||
const vm = new Vue({
|
const vm = new Vue({
|
||||||
template: '<div><v-select :options="options" :value="value" :multiple="true" taggable></v-select></div>',
|
template: '<div><v-select :options="options" :value="value" :multiple="true" taggable></v-select></div>',
|
||||||
@@ -841,7 +842,7 @@ describe('Select.vue', () => {
|
|||||||
vm.$refs.select.search = 'one'
|
vm.$refs.select.search = 'one'
|
||||||
searchSubmit(vm)
|
searchSubmit(vm)
|
||||||
Vue.nextTick(() => {
|
Vue.nextTick(() => {
|
||||||
expect(vm.$refs.select.mutableValue).toEqual(['one'])
|
expect(vm.$refs.select.mutableValue).toEqual([])
|
||||||
expect(vm.$refs.select.search).toEqual('')
|
expect(vm.$refs.select.search).toEqual('')
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
@@ -860,7 +861,7 @@ describe('Select.vue', () => {
|
|||||||
vm.$refs.select.search = 'one'
|
vm.$refs.select.search = 'one'
|
||||||
searchSubmit(vm)
|
searchSubmit(vm)
|
||||||
Vue.nextTick(() => {
|
Vue.nextTick(() => {
|
||||||
expect(vm.$refs.select.mutableValue).toEqual(['one'])
|
expect(vm.$refs.select.mutableValue).toEqual([])
|
||||||
expect(vm.$refs.select.search).toEqual('')
|
expect(vm.$refs.select.search).toEqual('')
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user