@syncfusion/ej2-inputs 19.3.53 → 19.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.
@@ -1453,8 +1453,13 @@ let NumericTextBox = class NumericTextBox extends Component {
1453
1453
  this.preventChange = true;
1454
1454
  }
1455
1455
  if (this.isVue) {
1456
- const current = this.instance.getNumberParser({ format: 'n' })(this.element.value);
1456
+ let current = this.instance.getNumberParser({ format: 'n' })(this.element.value);
1457
1457
  const previous = this.instance.getNumberParser({ format: 'n' })(this.elementPrevValue);
1458
+ //EJ2-54963-if type "." or ".0" or "-.0" it converts to "0" automatically when binding v-model
1459
+ const nonZeroRegex = new RegExp('[^1-9]+$');
1460
+ if (nonZeroRegex.test(this.element.value)) {
1461
+ current = this.value;
1462
+ }
1458
1463
  const eventArgs = {
1459
1464
  event: event,
1460
1465
  value: (current === null || isNaN(current) ? null : current),