@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.
@@ -4156,13 +4156,15 @@ let MaskedTextBox = class MaskedTextBox extends Component {
4156
4156
  for (const prop of Object.keys(newProp)) {
4157
4157
  switch (prop) {
4158
4158
  case 'value':
4159
- setMaskValue.call(this, this.value);
4160
- if (this.placeholder && !this.isFocus) {
4161
- this.setMaskPlaceholder(false, false);
4162
- }
4163
- if (this.value === '' && oldProp.value != null) {
4164
- this.element.selectionStart = 0;
4165
- this.element.selectionEnd = 0;
4159
+ if (newProp.value !== oldProp.value) {
4160
+ setMaskValue.call(this, this.value);
4161
+ if (this.placeholder && !this.isFocus) {
4162
+ this.setMaskPlaceholder(false, false);
4163
+ }
4164
+ if (this.value === '' && oldProp.value != null) {
4165
+ this.element.selectionStart = 0;
4166
+ this.element.selectionEnd = 0;
4167
+ }
4166
4168
  }
4167
4169
  break;
4168
4170
  case 'placeholder':
@@ -14220,10 +14222,13 @@ let TextBox = class TextBox extends Component {
14220
14222
  Input.updateCssClass(newProp.cssClass, oldProp.cssClass, this.textboxWrapper.container);
14221
14223
  break;
14222
14224
  case 'locale':
14223
- this.globalize = new Internationalization(this.locale);
14224
- this.l10n.setLocale(this.locale);
14225
- this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
14226
- Input.setPlaceholder(this.placeholder, this.respectiveElement);
14225
+ {
14226
+ this.globalize = new Internationalization(this.locale);
14227
+ this.l10n.setLocale(this.locale);
14228
+ const currentPlaceholder = (this.l10n.getConstant('placeholder') === '' ? this.placeholder : this.l10n.getConstant('placeholder'));
14229
+ this.setProperties({ placeholder: currentPlaceholder }, true);
14230
+ Input.setPlaceholder(this.placeholder, this.respectiveElement);
14231
+ }
14227
14232
  break;
14228
14233
  case 'prependTemplate':
14229
14234
  this.updatePrependTemplate();