@fluxhub/fluxhub-lib 10.0.68 → 10.0.70
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/bundles/fluxhub-fluxhub-lib.umd.js +8 -3
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhcurrencyfield.js +9 -4
- package/fesm2015/fluxhub-fluxhub-lib.js +8 -3
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -8672,6 +8672,7 @@
|
|
|
8672
8672
|
FHCurrencyFieldComponent.prototype.chg = function () {
|
|
8673
8673
|
var _this = this;
|
|
8674
8674
|
setTimeout(function () {
|
|
8675
|
+
console.log(_this.formattedAmount.split(".").join("").split(",").join(""), parseFloat(_this.formattedAmount.split(".").join("").split(",").join("")), typeof _this.value);
|
|
8675
8676
|
if (_this.decimal == 0)
|
|
8676
8677
|
_this.value = parseFloat(_this.formattedAmount.split(".").join("").split(",").join(""));
|
|
8677
8678
|
else
|
|
@@ -8682,8 +8683,10 @@
|
|
|
8682
8683
|
else
|
|
8683
8684
|
_this.value = parseFloat(_this.value.split(".").join("").split(",").join("."));
|
|
8684
8685
|
}
|
|
8685
|
-
if (isNaN(_this.value))
|
|
8686
|
+
if (isNaN(_this.value)) {
|
|
8687
|
+
console.log('this.value ', _this.value);
|
|
8686
8688
|
_this.value = 0;
|
|
8689
|
+
}
|
|
8687
8690
|
_this.onChange(_this.value);
|
|
8688
8691
|
}, 0);
|
|
8689
8692
|
};
|
|
@@ -8699,8 +8702,10 @@
|
|
|
8699
8702
|
else
|
|
8700
8703
|
value = parseFloat(value.split(".").join("").split(",").join("."));
|
|
8701
8704
|
}
|
|
8702
|
-
if (isNaN(value))
|
|
8703
|
-
value
|
|
8705
|
+
if (isNaN(value)) {
|
|
8706
|
+
console.log('writeValue ', this.value);
|
|
8707
|
+
this.value = 0;
|
|
8708
|
+
}
|
|
8704
8709
|
this.innerValue = value;
|
|
8705
8710
|
this.value = value;
|
|
8706
8711
|
// console.log('writeValue ini ',this.value);
|