@eturnity/eturnity_reusable_components 1.1.20 → 1.1.23
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
|
@@ -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,
|
|
@@ -304,7 +304,7 @@ export default {
|
|
|
304
304
|
let unit = this.showLinearUnitName ? "" : this.unitName
|
|
305
305
|
return input + " " + unit
|
|
306
306
|
} else if (!value) {
|
|
307
|
-
return
|
|
307
|
+
return ""
|
|
308
308
|
} else {
|
|
309
309
|
return numberToString({
|
|
310
310
|
value: value,
|