ngx-render-material-forms 2.5.7 → 2.5.8

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.
@@ -3575,7 +3575,7 @@ class AddOnProductsComponent {
3575
3575
  }
3576
3576
  this.selection.selected.forEach(product => {
3577
3577
  selectedProductsArray.push(this.fb.group({
3578
- price: [product?.price || '', Validators.required],
3578
+ price: [product?.price ?? '', this.showPrice && !this.isPriceDisable ? Validators.required : []],
3579
3579
  text: [product?.text || ''],
3580
3580
  quantity: [product.quantity || '', Validators.required],
3581
3581
  category: [product?.category || ''],
@@ -3794,7 +3794,7 @@ class AddOnProductsComponent {
3794
3794
  return;
3795
3795
  }
3796
3796
  const productFormGroup = this.fb.group({
3797
- price: [product?.price ?? '', this.showPrice ? Validators.required : []],
3797
+ price: [product?.price ?? '', this.showPrice && !this.isPriceDisable ? Validators.required : []],
3798
3798
  text: [product?.text || ''],
3799
3799
  quantity: [product?.quantity ?? '', this.showQuantity ? Validators.required : []],
3800
3800
  category: [product?.category || ''],