ngx-render-material-forms 1.8.3 → 1.8.4

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.
@@ -3830,13 +3830,9 @@ class AddOnProductsComponent {
3830
3830
  quantityControl.setErrors({ 'min': true });
3831
3831
  }
3832
3832
  // If the value is not an integer, set 'pattern' error
3833
- else if (!Number.isInteger(Number(value))) {
3833
+ else if (!/^\d+$/.test(value)) {
3834
3834
  quantityControl.setErrors({ 'pattern': true });
3835
3835
  }
3836
- // Otherwise, set the valid value
3837
- else {
3838
- quantityControl.setValue(Number(value));
3839
- }
3840
3836
  }
3841
3837
  }
3842
3838
  AddOnProductsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: AddOnProductsComponent, deps: [{ token: i1$1.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: i2.FormBuilder }, { token: i1$1.MatDialog }, { token: CommonService }], target: i0.ɵɵFactoryTarget.Component });