sapo-components-ui-rn 1.0.66 → 1.0.68

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
@@ -7325,6 +7325,12 @@ var NumberKeyboard = function (_a) {
7325
7325
  if (inputValue.endsWith(".")) {
7326
7326
  finalValue = inputValue.slice(0, -1);
7327
7327
  }
7328
+ // Nếu giá trị rỗng hoặc chỉ có dấu chấm, trả về "0"
7329
+ if (!finalValue || finalValue === ".") {
7330
+ onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText("0");
7331
+ onClose();
7332
+ return;
7333
+ }
7328
7334
  // Ép kiểu kết quả thành số theo type
7329
7335
  if (type === "integer") {
7330
7336
  var intValue = parseInt(finalValue, 10);