@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "2.1.0-1",
3
+ "version": "2.1.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -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
  }
@@ -31,7 +31,6 @@
31
31
 
32
32
 
33
33
  .multiselect__tags {
34
- padding: calc(var(--spacing-xs) - 1px); // borders
35
34
  color: var(--form-input-color);
36
35
  border: var(--select-tags-border);
37
36
  border-color: var(--form-border-color);