ps-toolkit-ui 1.20.89 → 1.20.91
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/ps-toolkit-ui.umd.js +5 -2
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +6 -3
- package/fesm2015/ps-toolkit-ui.js +5 -2
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -6866,7 +6866,7 @@
|
|
|
6866
6866
|
}
|
|
6867
6867
|
if (_this.inp.type === exports.InputType.Number || _this.inp.type === exports.InputType.Price) {
|
|
6868
6868
|
var v = vlu.toString().replace(/,/g, '');
|
|
6869
|
-
if (!/^-?\d+([
|
|
6869
|
+
if (!/^-?\d+([.]\d+)?$/.test(v)) {
|
|
6870
6870
|
_this.inp.error = exports.InputError.Invalid;
|
|
6871
6871
|
return false;
|
|
6872
6872
|
}
|
|
@@ -6916,7 +6916,10 @@
|
|
|
6916
6916
|
}
|
|
6917
6917
|
v = HelperClass.fixChars(v);
|
|
6918
6918
|
if (v && _this.inp.type === exports.InputType.Number || _this.inp.type === exports.InputType.Price) {
|
|
6919
|
-
|
|
6919
|
+
var vlu = v.toString().replace(/,/g, '');
|
|
6920
|
+
if (/^-?\d+([.]\d+)?$/.test(vlu)) {
|
|
6921
|
+
v = parseFloat(vlu);
|
|
6922
|
+
}
|
|
6920
6923
|
}
|
|
6921
6924
|
return v.toString();
|
|
6922
6925
|
};
|