@syncfusion/ej2-inputs 33.1.44 → 33.1.47

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.
@@ -2413,7 +2413,9 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2413
2413
  floatLabelType: this.floatLabelType,
2414
2414
  properties: this.properties
2415
2415
  }, this.clearButton);
2416
- setValue('ej2_instances', null, this.element);
2416
+ if (this.element.tagName === 'EJS-NUMERICTEXTBOX') {
2417
+ setValue('ej2_instances', null, this.element);
2418
+ }
2417
2419
  _super.prototype.destroy.call(this);
2418
2420
  };
2419
2421
  /**
@@ -4484,7 +4486,9 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
4484
4486
  }, this.clearButton);
4485
4487
  this.changeEventArgs = null;
4486
4488
  this.inputObj = null;
4487
- setValue('ej2_instances', null, this.element);
4489
+ if (this.element.tagName === 'EJS-MASKEDTEXTBOX') {
4490
+ setValue('ej2_instances', null, this.element);
4491
+ }
4488
4492
  _super.prototype.destroy.call(this);
4489
4493
  };
4490
4494
  __decorate$1([
@@ -8961,7 +8965,12 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8961
8965
  }
8962
8966
  }
8963
8967
  if (isNullOrUndefined(this.element.getAttribute('name'))) {
8964
- this.element.setAttribute('name', this.element.getAttribute('id'));
8968
+ if (!isNullOrUndefined(this.element.getAttribute('id')) && this.element.getAttribute('id') !== '') {
8969
+ this.element.setAttribute('name', this.element.getAttribute('id'));
8970
+ }
8971
+ else {
8972
+ this.element.setAttribute('name', 'UploadFiles');
8973
+ }
8965
8974
  }
8966
8975
  if (!this.element.hasAttribute('type')) {
8967
8976
  this.element.setAttribute('type', 'file');
@@ -11657,7 +11666,9 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11657
11666
  this.keyboardModule = null;
11658
11667
  this.clearButton = null;
11659
11668
  this.uploadButton = null;
11660
- setValue('ej2_instances', null, this.element);
11669
+ if (this.element.tagName === 'EJS-UPLOADER') {
11670
+ setValue('ej2_instances', null, this.element);
11671
+ }
11661
11672
  _super.prototype.destroy.call(this);
11662
11673
  };
11663
11674
  /**
@@ -15037,7 +15048,9 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
15037
15048
  floatLabelType: this.floatLabelType,
15038
15049
  properties: this.properties
15039
15050
  }, this.clearButton);
15040
- setValue('ej2_instances', null, this.element);
15051
+ if (this.element.tagName === 'EJS-TEXTBOX') {
15052
+ setValue('ej2_instances', null, this.element);
15053
+ }
15041
15054
  _super.prototype.destroy.call(this);
15042
15055
  };
15043
15056
  /**
@@ -15760,7 +15773,9 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
15760
15773
  properties: this.properties
15761
15774
  }, this.clearButton);
15762
15775
  this.formElement = null;
15763
- setValue('ej2_instances', null, this.element);
15776
+ if (this.element.tagName === 'EJS-TEXTAREA' || this.element.tagName === 'EJS-SMARTTEXTAREA') {
15777
+ setValue('ej2_instances', null, this.element);
15778
+ }
15764
15779
  _super.prototype.destroy.call(this);
15765
15780
  };
15766
15781
  TextArea.prototype.focusHandler = function (args) {