@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 31.2.12
3
+ * version : 31.2.15
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-inputs",
3
- "version": "31.2.12",
3
+ "version": "31.2.15",
4
4
  "description": "A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -1227,12 +1227,6 @@ var Uploader = /** @class */ (function (_super) {
1227
1227
  if (!this.enabled) {
1228
1228
  return;
1229
1229
  }
1230
- if (!this.multiple && this.getFilesData().length > 0) {
1231
- var selectedFile = this.getSelectedFiles(0);
1232
- if (selectedFile) {
1233
- this.remove(selectedFile, false, false, true, null);
1234
- }
1235
- }
1236
1230
  var targetFiles;
1237
1231
  /* istanbul ignore next */
1238
1232
  if (args.type === 'drop') {
@@ -1431,6 +1425,12 @@ var Uploader = /** @class */ (function (_super) {
1431
1425
  if (this.browserName !== 'msie' && !singleUpload) {
1432
1426
  this.element.value = '';
1433
1427
  }
1428
+ if (this.isFormUpload() && this.uploadWrapper.querySelector('.' + INPUT_WRAPPER)) {
1429
+ var hiddenElement = this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).querySelector('.' + HIDDEN_INPUT);
1430
+ if (hiddenElement) {
1431
+ this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).removeChild(hiddenElement);
1432
+ }
1433
+ }
1434
1434
  this.fileList = [];
1435
1435
  this.filesData = [];
1436
1436
  this.removeActionButtons();