@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.
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +6 -6
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +6 -6
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/uploader/uploader.js +6 -6
|
@@ -9331,12 +9331,6 @@ let Uploader = class Uploader extends Component {
|
|
|
9331
9331
|
if (!this.enabled) {
|
|
9332
9332
|
return;
|
|
9333
9333
|
}
|
|
9334
|
-
if (!this.multiple && this.getFilesData().length > 0) {
|
|
9335
|
-
const selectedFile = this.getSelectedFiles(0);
|
|
9336
|
-
if (selectedFile) {
|
|
9337
|
-
this.remove(selectedFile, false, false, true, null);
|
|
9338
|
-
}
|
|
9339
|
-
}
|
|
9340
9334
|
let targetFiles;
|
|
9341
9335
|
/* istanbul ignore next */
|
|
9342
9336
|
if (args.type === 'drop') {
|
|
@@ -9534,6 +9528,12 @@ let Uploader = class Uploader extends Component {
|
|
|
9534
9528
|
if (this.browserName !== 'msie' && !singleUpload) {
|
|
9535
9529
|
this.element.value = '';
|
|
9536
9530
|
}
|
|
9531
|
+
if (this.isFormUpload() && this.uploadWrapper.querySelector('.' + INPUT_WRAPPER)) {
|
|
9532
|
+
const hiddenElement = this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).querySelector('.' + HIDDEN_INPUT);
|
|
9533
|
+
if (hiddenElement) {
|
|
9534
|
+
this.uploadWrapper.querySelector('.' + INPUT_WRAPPER).removeChild(hiddenElement);
|
|
9535
|
+
}
|
|
9536
|
+
}
|
|
9537
9537
|
this.fileList = [];
|
|
9538
9538
|
this.filesData = [];
|
|
9539
9539
|
this.removeActionButtons();
|