@webitel/ui-sdk 3.1.97 → 3.1.98

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": "3.1.97",
3
+ "version": "3.1.98",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve-lib": "vue-cli-service serve",
@@ -31,7 +31,7 @@
31
31
  :min="numberMin"
32
32
  :placeholder="placeholder || label"
33
33
  :type="inputType"
34
- :value="value || modelValue"
34
+ :value="inputValue"
35
35
  class="wt-input__input"
36
36
  @input="inputHandler"
37
37
  @keyup="$emit('keyup', $event)"
@@ -80,14 +80,12 @@ export default {
80
80
  props: {
81
81
  value: {
82
82
  type: [String, Number],
83
- default: '',
84
83
  },
85
84
  /**
86
85
  * Current input modelValue (`v-model`)
87
86
  */
88
87
  modelValue: {
89
88
  type: [String, Number],
90
- default: '',
91
89
  },
92
90
  /**
93
91
  * Form input label
@@ -199,6 +197,10 @@ export default {
199
197
  },
200
198
 
201
199
  computed: {
200
+ inputValue() {
201
+ return this.value !== undefined ? this.value : this.modelValue;
202
+ },
203
+
202
204
  hasLabel() {
203
205
  return !!(this.label || this.$slots.label);
204
206
  },