@syncfusion/ej2-inputs 27.2.2 → 27.2.4

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.
@@ -1843,8 +1843,10 @@ let NumericTextBox = class NumericTextBox extends Component {
1843
1843
  this.setElementValue(elementValue);
1844
1844
  attributes(this.element, { 'aria-valuenow': value });
1845
1845
  this.hiddenInput.value = this.value.toString();
1846
- if (this.value !== null && this.serverDecimalSeparator) {
1847
- this.hiddenInput.value = this.hiddenInput.value.replace('.', this.serverDecimalSeparator);
1846
+ if (!isNullOrUndefined(this.hiddenInput)) {
1847
+ if (this.value !== null && this.serverDecimalSeparator) {
1848
+ this.hiddenInput.value = this.hiddenInput.value.replace('.', this.serverDecimalSeparator);
1849
+ }
1848
1850
  }
1849
1851
  }
1850
1852
  else {
@@ -10971,6 +10973,8 @@ let Uploader = class Uploader extends Component {
10971
10973
  };
10972
10974
  this.trigger('beforeUpload', eventArgs, (eventArgs) => {
10973
10975
  if (!eventArgs.cancel) {
10976
+ this.customFormDatas = (eventArgs.customFormData && eventArgs.customFormData.length > 0) ?
10977
+ eventArgs.customFormData : this.customFormDatas;
10974
10978
  this.uploadFiles(uploadFiles, custom);
10975
10979
  }
10976
10980
  });
@@ -11074,6 +11078,9 @@ let Uploader = class Uploader extends Component {
11074
11078
  if (eventArgs.cancel) {
11075
11079
  this.eventCancelByArgs(e, eventArgs, selectedFiles[i]);
11076
11080
  }
11081
+ if (this.customFormDatas && this.customFormDatas.length > 0) {
11082
+ this.updateFormData(formData, this.customFormDatas);
11083
+ }
11077
11084
  this.updateFormData(formData, eventArgs.customFormData);
11078
11085
  });
11079
11086
  };