@syncfusion/ej2-inputs 25.1.38 → 25.1.42

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.
@@ -9569,7 +9569,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9569
9569
  allowedExtensions.push(extension.trim().toLocaleLowerCase());
9570
9570
  }
9571
9571
  for (var i = 0; i < files.length; i++) {
9572
- if (allowedExtensions.indexOf(('.' + files[i].type).toLocaleLowerCase()) === -1) {
9572
+ var checkFileType = files[i].type.indexOf(".") !== -1 ? files[i].type.replace(".", "") : files[i].type;
9573
+ if (allowedExtensions.indexOf(('.' + checkFileType).toLocaleLowerCase()) === -1) {
9573
9574
  files[i].status = this.localizedTexts('invalidFileType');
9574
9575
  files[i].statusCode = '0';
9575
9576
  }
@@ -10006,7 +10007,10 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10006
10007
  var li;
10007
10008
  for (var i = 0; i < files.length; i++) {
10008
10009
  li = this.getLiElement(files[i]);
10009
- if (!li.classList.contains(UPLOAD_SUCCESS)) {
10010
+ if (!isNullOrUndefined(li) && !li.classList.contains(UPLOAD_SUCCESS)) {
10011
+ filterFiles.push(files[i]);
10012
+ }
10013
+ else if (!this.showFileList && files[i].status !== "File uploaded successfully") {
10010
10014
  filterFiles.push(files[i]);
10011
10015
  }
10012
10016
  }
@@ -10211,7 +10215,7 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
10211
10215
  var status = e.target;
10212
10216
  if (status.readyState === 4 && status.status >= 200 && status.status <= 299) {
10213
10217
  var li = this.getLiElement(file);
10214
- if (isNullOrUndefined(li) && (!customUI || isNullOrUndefined(customUI))) {
10218
+ if (isNullOrUndefined(li) && (!customUI || isNullOrUndefined(customUI)) && this.showFileList) {
10215
10219
  return;
10216
10220
  }
10217
10221
  if (!isNullOrUndefined(li)) {