@syncfusion/ej2-inputs 31.2.12 → 31.2.15

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.
@@ -9524,12 +9524,6 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9524
9524
  if (!this.enabled) {
9525
9525
  return;
9526
9526
  }
9527
- if (!this.multiple && this.getFilesData().length > 0) {
9528
- var selectedFile = this.getSelectedFiles(0);
9529
- if (selectedFile) {
9530
- this.remove(selectedFile, false, false, true, null);
9531
- }
9532
- }
9533
9527
  var targetFiles;
9534
9528
  /* istanbul ignore next */
9535
9529
  if (args.type === 'drop') {
@@ -9728,6 +9722,12 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
9728
9722
  if (this.browserName !== 'msie' && !singleUpload) {
9729
9723
  this.element.value = '';
9730
9724
  }
9725
+ if (this.isFormUpload() && this.uploadWrapper.querySelector('.' + INPUT_WRAPPER)) {
9726
+ var hiddenElement = this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).querySelector('.' + HIDDEN_INPUT);
9727
+ if (hiddenElement) {
9728
+ this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).removeChild(hiddenElement);
9729
+ }
9730
+ }
9731
9731
  this.fileList = [];
9732
9732
  this.filesData = [];
9733
9733
  this.removeActionButtons();