Skip to content

Commit 225733f

Browse files
committed
build: 3.0.0-beta.2
1 parent 3947d1d commit 225733f

15 files changed

+160
-126
lines changed

dist/vue3-multiselect.common.js dist/vue-multiselect.common.js

+58-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-multiselect.common.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-multiselect.esm.js

+12-5
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,15 @@ var multiselectMixin = {
389389
}
390390
},
391391
watch: {
392-
internalValue () {
392+
internalValue: {
393+
handler () {
393394
/* istanbul ignore else */
394-
if (this.resetAfter && this.internalValue.length) {
395-
this.search = '';
396-
this.$emit('update:modelValue', this.multiple ? [] : null);
397-
}
395+
if (this.resetAfter && this.internalValue.length) {
396+
this.search = '';
397+
this.$emit('update:modelValue', this.multiple ? [] : null);
398+
}
399+
},
400+
deep: true
398401
},
399402
search () {
400403
this.$emit('search-change', this.search);
@@ -870,6 +873,10 @@ var pointerMixin = {
870873
var script = {
871874
name: 'vue-multiselect',
872875
mixins: [multiselectMixin, pointerMixin],
876+
compatConfig: {
877+
MODE: 3,
878+
ATTR_ENUMERATED_COERCION: false
879+
},
873880
props: {
874881
/**
875882
* name attribute to match optional label element

dist/vue-multiselect.js

+12-5
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,15 @@ var VueMultiselect = (function (exports, vue) {
390390
}
391391
},
392392
watch: {
393-
internalValue () {
393+
internalValue: {
394+
handler () {
394395
/* istanbul ignore else */
395-
if (this.resetAfter && this.internalValue.length) {
396-
this.search = '';
397-
this.$emit('update:modelValue', this.multiple ? [] : null);
398-
}
396+
if (this.resetAfter && this.internalValue.length) {
397+
this.search = '';
398+
this.$emit('update:modelValue', this.multiple ? [] : null);
399+
}
400+
},
401+
deep: true
399402
},
400403
search () {
401404
this.$emit('search-change', this.search);
@@ -871,6 +874,10 @@ var VueMultiselect = (function (exports, vue) {
871874
var script = {
872875
name: 'vue-multiselect',
873876
mixins: [multiselectMixin, pointerMixin],
877+
compatConfig: {
878+
MODE: 3,
879+
ATTR_ENUMERATED_COERCION: false
880+
},
874881
props: {
875882
/**
876883
* name attribute to match optional label element

dist/vue-multiselect.ssr.js

+12-5
Original file line numberDiff line numberDiff line change
@@ -393,12 +393,15 @@ var multiselectMixin = {
393393
}
394394
},
395395
watch: {
396-
internalValue () {
396+
internalValue: {
397+
handler () {
397398
/* istanbul ignore else */
398-
if (this.resetAfter && this.internalValue.length) {
399-
this.search = '';
400-
this.$emit('update:modelValue', this.multiple ? [] : null);
401-
}
399+
if (this.resetAfter && this.internalValue.length) {
400+
this.search = '';
401+
this.$emit('update:modelValue', this.multiple ? [] : null);
402+
}
403+
},
404+
deep: true
402405
},
403406
search () {
404407
this.$emit('search-change', this.search);
@@ -874,6 +877,10 @@ var pointerMixin = {
874877
var script = {
875878
name: 'vue-multiselect',
876879
mixins: [multiselectMixin, pointerMixin],
880+
compatConfig: {
881+
MODE: 3,
882+
ATTR_ENUMERATED_COERCION: false
883+
},
877884
props: {
878885
/**
879886
* name attribute to match optional label element

0 commit comments

Comments
 (0)