@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.
@@ -2378,7 +2378,9 @@ let NumericTextBox = class NumericTextBox extends Component {
2378
2378
  floatLabelType: this.floatLabelType,
2379
2379
  properties: this.properties
2380
2380
  }, this.clearButton);
2381
- setValue('ej2_instances', null, this.element);
2381
+ if (this.element.tagName === 'EJS-NUMERICTEXTBOX') {
2382
+ setValue('ej2_instances', null, this.element);
2383
+ }
2382
2384
  super.destroy();
2383
2385
  }
2384
2386
  /**
@@ -4421,7 +4423,9 @@ let MaskedTextBox = class MaskedTextBox extends Component {
4421
4423
  }, this.clearButton);
4422
4424
  this.changeEventArgs = null;
4423
4425
  this.inputObj = null;
4424
- setValue('ej2_instances', null, this.element);
4426
+ if (this.element.tagName === 'EJS-MASKEDTEXTBOX') {
4427
+ setValue('ej2_instances', null, this.element);
4428
+ }
4425
4429
  super.destroy();
4426
4430
  }
4427
4431
  };
@@ -8788,7 +8792,12 @@ let Uploader = class Uploader extends Component {
8788
8792
  }
8789
8793
  }
8790
8794
  if (isNullOrUndefined(this.element.getAttribute('name'))) {
8791
- this.element.setAttribute('name', this.element.getAttribute('id'));
8795
+ if (!isNullOrUndefined(this.element.getAttribute('id')) && this.element.getAttribute('id') !== '') {
8796
+ this.element.setAttribute('name', this.element.getAttribute('id'));
8797
+ }
8798
+ else {
8799
+ this.element.setAttribute('name', 'UploadFiles');
8800
+ }
8792
8801
  }
8793
8802
  if (!this.element.hasAttribute('type')) {
8794
8803
  this.element.setAttribute('type', 'file');
@@ -11440,7 +11449,9 @@ let Uploader = class Uploader extends Component {
11440
11449
  this.keyboardModule = null;
11441
11450
  this.clearButton = null;
11442
11451
  this.uploadButton = null;
11443
- setValue('ej2_instances', null, this.element);
11452
+ if (this.element.tagName === 'EJS-UPLOADER') {
11453
+ setValue('ej2_instances', null, this.element);
11454
+ }
11444
11455
  super.destroy();
11445
11456
  }
11446
11457
  /**
@@ -14757,7 +14768,9 @@ let TextBox = class TextBox extends Component {
14757
14768
  floatLabelType: this.floatLabelType,
14758
14769
  properties: this.properties
14759
14770
  }, this.clearButton);
14760
- setValue('ej2_instances', null, this.element);
14771
+ if (this.element.tagName === 'EJS-TEXTBOX') {
14772
+ setValue('ej2_instances', null, this.element);
14773
+ }
14761
14774
  super.destroy();
14762
14775
  }
14763
14776
  /**
@@ -15459,7 +15472,9 @@ let TextArea = class TextArea extends Component {
15459
15472
  properties: this.properties
15460
15473
  }, this.clearButton);
15461
15474
  this.formElement = null;
15462
- setValue('ej2_instances', null, this.element);
15475
+ if (this.element.tagName === 'EJS-TEXTAREA' || this.element.tagName === 'EJS-SMARTTEXTAREA') {
15476
+ setValue('ej2_instances', null, this.element);
15477
+ }
15463
15478
  super.destroy();
15464
15479
  }
15465
15480
  focusHandler(args) {