@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.
@@ -1530,8 +1530,8 @@ let NumericTextBox = class NumericTextBox extends Component {
1530
1530
  let current = this.instance.getNumberParser({ format: 'n' })(this.element.value);
1531
1531
  const previous = this.instance.getNumberParser({ format: 'n' })(this.elementPrevValue);
1532
1532
  //EJ2-54963-if type "." or ".0" or "-.0" it converts to "0" automatically when binding v-model
1533
- const nonZeroRegex = new RegExp('[^1-9]+$');
1534
- if (nonZeroRegex.test(this.element.value)) {
1533
+ const nonZeroRegex = new RegExp('[^0-9]+$');
1534
+ if (nonZeroRegex.test(this.element.value) || ((this.elementPrevValue.indexOf('.') !== -1 || this.elementPrevValue.indexOf('-') !== -1) && this.element.value[this.element.value.length - 1] === '0')) {
1535
1535
  current = this.value;
1536
1536
  }
1537
1537
  const eventArgs = {
@@ -2025,6 +2025,7 @@ let NumericTextBox = class NumericTextBox extends Component {
2025
2025
  break;
2026
2026
  case 'enabled':
2027
2027
  Input.setEnabled(newProp.enabled, this.element);
2028
+ this.bindClearEvent();
2028
2029
  break;
2029
2030
  case 'enableRtl':
2030
2031
  Input.setEnableRtl(newProp.enableRtl, [this.container]);
@@ -13071,7 +13072,7 @@ let TextBox = class TextBox extends Component {
13071
13072
  }
13072
13073
  break;
13073
13074
  case 'value':
13074
- if ((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['value'] === undefined)) || isDynamic) {
13075
+ if (((isNullOrUndefined(this.textboxOptions) || (this.textboxOptions['value'] === undefined)) || isDynamic) && this.element.value !== '') {
13075
13076
  this.setProperties({ value: this.element.value }, !isDynamic);
13076
13077
  }
13077
13078
  break;
@@ -13573,7 +13574,7 @@ class SignatureBase extends Component {
13573
13574
  initialize(element, dotnetRef) {
13574
13575
  this.element = element;
13575
13576
  this.canvasContext = this.element.getContext('2d');
13576
- this.canvasContext.canvas.tabIndex = 0;
13577
+ this.canvasContext.canvas.tabIndex = -1;
13577
13578
  if (dotnetRef) {
13578
13579
  this.dotnetRef = dotnetRef;
13579
13580
  this.isBlazor = true;