@syncfusion/ej2-inputs 20.3.56 → 20.3.57

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.
@@ -1557,8 +1557,8 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
1557
1557
  var current = this.instance.getNumberParser({ format: 'n' })(this.element.value);
1558
1558
  var previous = this.instance.getNumberParser({ format: 'n' })(this.elementPrevValue);
1559
1559
  //EJ2-54963-if type "." or ".0" or "-.0" it converts to "0" automatically when binding v-model
1560
- var nonZeroRegex = new RegExp('[^1-9]+$');
1561
- if (nonZeroRegex.test(this.element.value)) {
1560
+ var nonZeroRegex = new RegExp('[^0-9]+$');
1561
+ if (nonZeroRegex.test(this.element.value) || ((this.elementPrevValue.indexOf('.') !== -1 || this.elementPrevValue.indexOf('-') !== -1) && this.element.value[this.element.value.length - 1] === '0')) {
1562
1562
  current = this.value;
1563
1563
  }
1564
1564
  var eventArgs = {
@@ -2058,6 +2058,7 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
2058
2058
  break;
2059
2059
  case 'enabled':
2060
2060
  Input.setEnabled(newProp.enabled, this.element);
2061
+ this.bindClearEvent();
2061
2062
  break;
2062
2063
  case 'enableRtl':
2063
2064
  Input.setEnableRtl(newProp.enableRtl, [this.container]);
@@ -13346,7 +13347,7 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13346
13347
  }
13347
13348
  break;
13348
13349
  case 'value':
13349
- if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['value'] === undefined)) || isDynamic) {
13350
+ if (((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['value'] === undefined)) || isDynamic) && this.element.value !== '') {
13350
13351
  this.setProperties({ value: this.element.value }, !isDynamic);
13351
13352
  }
13352
13353
  break;
@@ -13868,7 +13869,7 @@ var SignatureBase = /** @__PURE__ @class */ (function (_super) {
13868
13869
  SignatureBase.prototype.initialize = function (element, dotnetRef) {
13869
13870
  this.element = element;
13870
13871
  this.canvasContext = this.element.getContext('2d');
13871
- this.canvasContext.canvas.tabIndex = 0;
13872
+ this.canvasContext.canvas.tabIndex = -1;
13872
13873
  if (dotnetRef) {
13873
13874
  this.dotnetRef = dotnetRef;
13874
13875
  this.isBlazor = true;