@syncfusion/ej2-inputs 33.1.47 → 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.
@@ -4219,13 +4219,15 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
4219
4219
  var prop = _a[_i];
4220
4220
  switch (prop) {
4221
4221
  case 'value':
4222
- setMaskValue.call(this, this.value);
4223
- if (this.placeholder && !this.isFocus) {
4224
- this.setMaskPlaceholder(false, false);
4225
- }
4226
- if (this.value === '' && oldProp.value != null) {
4227
- this.element.selectionStart = 0;
4228
- 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
+ }
4229
4231
  }
4230
4232
  break;
4231
4233
  case 'placeholder':
@@ -14498,10 +14500,13 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
14498
14500
  Input.updateCssClass(newProp.cssClass, oldProp.cssClass, this.textboxWrapper.container);
14499
14501
  break;
14500
14502
  case 'locale':
14501
- this.globalize = new Internationalization(this.locale);
14502
- this.l10n.setLocale(this.locale);
14503
- this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
14504
- 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
+ }
14505
14510
  break;
14506
14511
  case 'prependTemplate':
14507
14512
  this.updatePrependTemplate();