@eturnity/eturnity_reusable_components 1.1.21 → 1.1.22

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": "@eturnity/eturnity_reusable_components",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -19,7 +19,7 @@
19
19
  :isError="isError"
20
20
  :inputWidth="inputWidth"
21
21
  :value="formatWithCurrency(value)"
22
- :hasLength="!!value.length"
22
+ :hasLength="value && !!value.length"
23
23
  @blur="onInputBlur($event)"
24
24
  @focus="focusInput()"
25
25
  @keyup.enter="$emit('on-enter-click')"
@@ -281,7 +281,7 @@ export default {
281
281
  let value = e.target.value
282
282
  let evaluatedInput = this.onEvaluateCode(value)
283
283
  this.onChangeHandler(evaluatedInput)
284
- if (value.length) {
284
+ if (value && value.length) {
285
285
  this.textInput = numberToString({
286
286
  value: evaluatedInput,
287
287
  numberPrecision: this.numberPrecision,