@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.1.47
3
+ * version : 33.1.49
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-inputs",
3
- "version": "33.1.47",
3
+ "version": "33.1.49",
4
4
  "description": "A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -9,9 +9,9 @@
9
9
  "es2015": "./dist/es6/ej2-inputs.es5.js",
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~33.1.45",
12
- "@syncfusion/ej2-buttons": "~33.1.44",
12
+ "@syncfusion/ej2-buttons": "~33.1.49",
13
13
  "@syncfusion/ej2-popups": "~33.1.44",
14
- "@syncfusion/ej2-splitbuttons": "~33.1.44"
14
+ "@syncfusion/ej2-splitbuttons": "~33.1.49"
15
15
  },
16
16
  "devDependencies": {},
17
17
  "keywords": [
@@ -327,13 +327,15 @@ var MaskedTextBox = /** @class */ (function (_super) {
327
327
  var prop = _a[_i];
328
328
  switch (prop) {
329
329
  case 'value':
330
- setMaskValue.call(this, this.value);
331
- if (this.placeholder && !this.isFocus) {
332
- this.setMaskPlaceholder(false, false);
333
- }
334
- if (this.value === '' && oldProp.value != null) {
335
- this.element.selectionStart = 0;
336
- this.element.selectionEnd = 0;
330
+ if (newProp.value !== oldProp.value) {
331
+ setMaskValue.call(this, this.value);
332
+ if (this.placeholder && !this.isFocus) {
333
+ this.setMaskPlaceholder(false, false);
334
+ }
335
+ if (this.value === '' && oldProp.value != null) {
336
+ this.element.selectionStart = 0;
337
+ this.element.selectionEnd = 0;
338
+ }
337
339
  }
338
340
  break;
339
341
  case 'placeholder':
@@ -145,10 +145,13 @@ var TextBox = /** @class */ (function (_super) {
145
145
  Input.updateCssClass(newProp.cssClass, oldProp.cssClass, this.textboxWrapper.container);
146
146
  break;
147
147
  case 'locale':
148
- this.globalize = new Internationalization(this.locale);
149
- this.l10n.setLocale(this.locale);
150
- this.setProperties({ placeholder: this.l10n.getConstant('placeholder') }, true);
151
- Input.setPlaceholder(this.placeholder, this.respectiveElement);
148
+ {
149
+ this.globalize = new Internationalization(this.locale);
150
+ this.l10n.setLocale(this.locale);
151
+ var currentPlaceholder = (this.l10n.getConstant('placeholder') === '' ? this.placeholder : this.l10n.getConstant('placeholder'));
152
+ this.setProperties({ placeholder: currentPlaceholder }, true);
153
+ Input.setPlaceholder(this.placeholder, this.respectiveElement);
154
+ }
152
155
  break;
153
156
  case 'prependTemplate':
154
157
  this.updatePrependTemplate();