@webitel/ui-sdk 24.4.23 → 24.4.24
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.css +1 -1
- package/dist/ui-sdk.mjs +1255 -1255
- package/dist/ui-sdk.umd.js +10 -10
- package/package.json +1 -1
- package/src/components/wt-select/wt-select.vue +2 -1
package/package.json
CHANGED
|
@@ -143,6 +143,7 @@
|
|
|
143
143
|
</template>
|
|
144
144
|
|
|
145
145
|
<script>
|
|
146
|
+
import isEmpty from '../../scripts/isEmpty';
|
|
146
147
|
import taggableMixin from '../wt-tags-input/mixin/taggableMixin';
|
|
147
148
|
import multiselectMixin from './mixins/multiselectMixin';
|
|
148
149
|
|
|
@@ -212,7 +213,7 @@ export default {
|
|
|
212
213
|
const customValuesToOptions =
|
|
213
214
|
Array.isArray(this.value)
|
|
214
215
|
? this.value
|
|
215
|
-
: (this.value ? [
|
|
216
|
+
: (isEmpty(this.value) ? [] : [this.value]); //do not add empty values
|
|
216
217
|
const optionsWithoutValues = this.selectOptions.filter((opt) => {
|
|
217
218
|
const optKey = this.trackBy ? opt[this.trackBy] : opt;
|
|
218
219
|
return !customValuesToOptions.some((customValue) => {
|