mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-04 06:32:23 +03:00
- move mutableLoading data property to ajax mixin
- open dropdown only when not loading - add watcher to keep loading synced with mutableLoading
This commit is contained in:
@@ -1058,6 +1058,18 @@ describe('Select.vue', () => {
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
||||
it('will sync mutable loading with the loading prop', (done) => {
|
||||
const vm = new Vue({
|
||||
template: '<div><v-select ref="select" :loading="loading"></v-select></div>',
|
||||
data: {loading:false}
|
||||
}).$mount()
|
||||
vm.loading = true
|
||||
Vue.nextTick(() => {
|
||||
expect(vm.$refs.select.mutableLoading).toEqual(true)
|
||||
done()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('Reset on options change', () => {
|
||||
|
||||
Reference in New Issue
Block a user