@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.
@@ -1873,8 +1873,10 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1873
1873
  this.setElementValue(elementValue);
1874
1874
  attributes(this.element, { 'aria-valuenow': value });
1875
1875
  this.hiddenInput.value = this.value.toString();
1876
- if (this.value !== null && this.serverDecimalSeparator) {
1877
- this.hiddenInput.value = this.hiddenInput.value.replace('.', this.serverDecimalSeparator);
1876
+ if (!isNullOrUndefined(this.hiddenInput)) {
1877
+ if (this.value !== null && this.serverDecimalSeparator) {
1878
+ this.hiddenInput.value = this.hiddenInput.value.replace('.', this.serverDecimalSeparator);
1879
+ }
1878
1880
  }
1879
1881
  }
1880
1882
  else {
@@ -11189,6 +11191,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11189
11191
  };
11190
11192
  this.trigger('beforeUpload', eventArgs, function (eventArgs) {
11191
11193
  if (!eventArgs.cancel) {
11194
+ _this.customFormDatas = (eventArgs.customFormData && eventArgs.customFormData.length > 0) ?
11195
+ eventArgs.customFormData : _this.customFormDatas;
11192
11196
  _this.uploadFiles(uploadFiles_1, custom);
11193
11197
  }
11194
11198
  });
@@ -11294,6 +11298,9 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11294
11298
  if (eventArgs.cancel) {
11295
11299
  _this.eventCancelByArgs(e, eventArgs, selectedFiles[i]);
11296
11300
  }
11301
+ if (_this.customFormDatas && _this.customFormDatas.length > 0) {
11302
+ _this.updateFormData(formData, _this.customFormDatas);
11303
+ }
11297
11304
  _this.updateFormData(formData, eventArgs.customFormData);
11298
11305
  });
11299
11306
  };