@webitel/ui-sdk 2.1.0-1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-sdk.common.js +11 -12
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +11 -12
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-tags-input/wt-tags-input.vue +4 -7
- package/src/css/components/molecules/wt-select/_multiselect.scss +0 -1
package/package.json
CHANGED
|
@@ -119,14 +119,11 @@ export default {
|
|
|
119
119
|
methods: {
|
|
120
120
|
tag(searchQuery, id) {
|
|
121
121
|
this.$emit('tag', searchQuery, id);
|
|
122
|
-
|
|
123
|
-
const tag = this.trackBy ? {
|
|
124
|
-
[this.optionLabel || 'name']: searchQuery,
|
|
125
|
-
[this.trackBy]: id || searchQuery,
|
|
126
|
-
} : searchQuery;
|
|
127
|
-
|
|
128
|
-
this.options.unshift(tag);
|
|
129
122
|
if (!this.manualTagging) {
|
|
123
|
+
const tag = this.trackBy ? {
|
|
124
|
+
[this.optionLabel || 'name']: searchQuery,
|
|
125
|
+
[this.trackBy]: id || searchQuery,
|
|
126
|
+
} : searchQuery;
|
|
130
127
|
const value = [...this.value, tag];
|
|
131
128
|
this.input(value);
|
|
132
129
|
}
|