sapo-components-ui-rn 1.1.31 → 1.1.33
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/dist/index.esm.js
CHANGED
|
@@ -5738,8 +5738,14 @@ var TextInputNumber = function (_a) {
|
|
|
5738
5738
|
if (inputValue.endsWith(".")) {
|
|
5739
5739
|
finalValue = inputValue.slice(0, -1);
|
|
5740
5740
|
}
|
|
5741
|
-
|
|
5742
|
-
|
|
5741
|
+
if (type === "integer") {
|
|
5742
|
+
onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(finalValue);
|
|
5743
|
+
setNumberValue(finalValue);
|
|
5744
|
+
}
|
|
5745
|
+
else {
|
|
5746
|
+
onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(formatNumberInput$1(finalValue, formatDecimal));
|
|
5747
|
+
setNumberValue(formatNumberInput$1(finalValue, formatDecimal));
|
|
5748
|
+
}
|
|
5743
5749
|
setIsShowModalKeyboard(false);
|
|
5744
5750
|
};
|
|
5745
5751
|
var checkValueEmpty = function () {
|