ps-toolkit-ui 1.6.53 → 1.6.54

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.
@@ -7451,7 +7451,7 @@
7451
7451
  if (!_this.inp.required && _this.inp.value.length === 0) {
7452
7452
  return true;
7453
7453
  }
7454
- if (_this.inp.allowed !== null && _this.inp.value.map(function (x) { return RegExp(_this.inp.allowed === exports.InputType.BillNumber ? /^\d+(\/\d+)*$/ : '').test(x); }).some(function (x) { return x === false; })) {
7454
+ if (_this.inp.allowed !== null && _this.inp.value.filter(function (x) { return x !== ''; }).map(function (x) { return RegExp(_this.inp.allowed === exports.InputType.BillNumber ? /^\d+(\/\d+)*$/ : '').test(x); }).some(function (x) { return x === false; })) {
7455
7455
  _this.inp.error = exports.InputError.Invalid;
7456
7456
  return false;
7457
7457
  }
@@ -7462,7 +7462,7 @@
7462
7462
  _this.inp.setValue(_this.inp.default, false);
7463
7463
  };
7464
7464
  this.inp.data = function () {
7465
- return _this.inp.value;
7465
+ return _this.inp.value.filter(function (x) { return x !== ''; });
7466
7466
  };
7467
7467
  this.inp.setValue(this.inp.default, false);
7468
7468
  };