diff --git a/src/components/Select.vue b/src/components/Select.vue
index 7f0b3de..19df306 100644
--- a/src/components/Select.vue
+++ b/src/components/Select.vue
@@ -391,7 +391,7 @@
*/
resetOnOptionsChange: {
type: Boolean,
- default: true
+ default: false
},
},
diff --git a/test/unit/specs/Select.spec.js b/test/unit/specs/Select.spec.js
index c416654..03b3392 100644
--- a/test/unit/specs/Select.spec.js
+++ b/test/unit/specs/Select.spec.js
@@ -125,22 +125,6 @@ describe('Select.vue', () => {
expect(select.isValueEmpty).toEqual(true)
})
- it('should reset the selected values when the options property changes', (done) => {
- const vm = new Vue({
- template: '
',
- components: {vSelect},
- data: {
- value: ['one'],
- options: ['one', 'two', 'three']
- }
- }).$mount()
- vm.$children[0].options = ['four', 'five', 'six']
- Vue.nextTick(() => {
- expect(vm.$children[0].value).toEqual([])
- done()
- })
- })
-
it('should reset the selected values when the multiple property changes', (done) => {
const vm = new Vue({
template: '
',
@@ -856,10 +840,9 @@ describe('Select.vue', () => {
})
describe('Reset on options change', () => {
- it('should not reset the selected value when the options property changes', (done) => {
+ it('should not reset the selected value by default when the options property changes', (done) => {
const vm = new Vue({
- template: '
',
- components: {vSelect},
+ template: '
',
data: {
value: 'one',
options: ['one', 'two', 'three']
@@ -874,7 +857,7 @@ describe('Select.vue', () => {
it('should reset the selected value when the options property changes', (done) => {
const vm = new Vue({
- template: '
',
+ template: '
',
components: {vSelect},
data: {
value: 'one',