@syncfusion/ej2-inputs 33.1.44 → 33.1.49

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
  /**
@@ -4217,13 +4219,15 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
4217
4219
  var prop = _a[_i];
4218
4220
  switch (prop) {
4219
4221
  case 'value':
4220
- setMaskValue.call(this, this.value);
4221
- if (this.placeholder && !this.isFocus) {
4222
- this.setMaskPlaceholder(false, false);
4223
- }
4224
- if (this.value === '' && oldProp.value != null) {
4225
- this.element.selectionStart = 0;
4226
- this.element.selectionEnd = 0;
4222
+ if (newProp.value !== oldProp.value) {
4223
+ setMaskValue.call(this, this.value);
4224
+ if (this.placeholder && !this.isFocus) {
4225
+ this.setMaskPlaceholder(false, false);
4226
+ }
4227
+ if (this.value === '' && oldProp.value != null) {
4228
+ this.element.selectionStart = 0;
4229
+ this.element.selectionEnd = 0;
4230
+ }
4227
4231
  }
4228
4232
  break;
4229
4233
  case 'placeholder':
@@ -4484,7 +4488,9 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
4484
4488
  }, this.clearButton);
4485
4489
  this.changeEventArgs = null;
4486
4490
  this.inputObj = null;
4487
- setValue('ej2_instances', null, this.element);
4491
+ if (this.element.tagName === 'EJS-MASKEDTEXTBOX') {
4492
+ setValue('ej2_instances', null, this.element);
4493
+ }
4488
4494
  _super.prototype.destroy.call(this);
4489
4495
  };
4490
4496
  __decorate$1([
@@ -8961,7 +8967,12 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
8961
8967
  }
8962
8968
  }
8963
8969
  if (isNullOrUndefined(this.element.getAttribute('name'))) {
8964
- this.element.setAttribute('name', this.element.getAttribute('id'));
8970
+ if (!isNullOrUndefined(this.element.getAttribute('id')) && this.element.getAttribute('id') !== '') {
8971
+ this.element.setAttribute('name', this.element.getAttribute('id'));
8972
+ }
8973
+ else {
8974
+ this.element.setAttribute('name', 'UploadFiles');
8975
+ }
8965
8976
  }
8966
8977
  if (!this.element.hasAttribute('type')) {
8967
8978
  this.element.setAttribute('type', 'file');
@@ -11657,7 +11668,9 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
11657
11668
  this.keyboardModule = null;
11658
11669
  this.clearButton = null;
11659
11670
  this.uploadButton = null;
11660
- setValue('ej2_instances', null, this.element);
11671
+ if (this.element.tagName === 'EJS-UPLOADER') {
11672
+ setValue('ej2_instances', null, this.element);
11673
+ }
11661
11674
  _super.prototype.destroy.call(this);
11662
11675
  };
11663
11676
  /**
@@ -14487,10 +14500,13 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
14487
14500
  Input.updateCssClass(newProp.cssClass, oldProp.cssClass, this.textboxWrapper.container);
14488
14501
  break;
14489
14502
  case 'locale':
14490
- this.globalize = new Internationalization(this.locale);
14491
- this.l10n.setLocale(this.locale);
14492
- this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
14493
- Input.setPlaceholder(this.placeholder, this.respectiveElement);
14503
+ {
14504
+ this.globalize = new Internationalization(this.locale);
14505
+ this.l10n.setLocale(this.locale);
14506
+ var currentPlaceholder = (this.l10n.getConstant('placeholder') === '' ? this.placeholder : this.l10n.getConstant('placeholder'));
14507
+ this.setProperties({ placeholder: currentPlaceholder }, true);
14508
+ Input.setPlaceholder(this.placeholder, this.respectiveElement);
14509
+ }
14494
14510
  break;
14495
14511
  case 'prependTemplate':
14496
14512
  this.updatePrependTemplate();
@@ -15037,7 +15053,9 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
15037
15053
  floatLabelType: this.floatLabelType,
15038
15054
  properties: this.properties
15039
15055
  }, this.clearButton);
15040
- setValue('ej2_instances', null, this.element);
15056
+ if (this.element.tagName === 'EJS-TEXTBOX') {
15057
+ setValue('ej2_instances', null, this.element);
15058
+ }
15041
15059
  _super.prototype.destroy.call(this);
15042
15060
  };
15043
15061
  /**
@@ -15760,7 +15778,9 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
15760
15778
  properties: this.properties
15761
15779
  }, this.clearButton);
15762
15780
  this.formElement = null;
15763
- setValue('ej2_instances', null, this.element);
15781
+ if (this.element.tagName === 'EJS-TEXTAREA' || this.element.tagName === 'EJS-SMARTTEXTAREA') {
15782
+ setValue('ej2_instances', null, this.element);
15783
+ }
15764
15784
  _super.prototype.destroy.call(this);
15765
15785
  };
15766
15786
  TextArea.prototype.focusHandler = function (args) {