ngx-render-material-forms 1.4.7 → 1.4.9

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.
@@ -2810,8 +2810,13 @@ class MaterialSelectComponent extends MaterialComponent {
2810
2810
  this.filteredOptions = this.selectOptions;
2811
2811
  }
2812
2812
  isError() {
2813
- this.control.setErrors(this.instance.component.validate);
2814
- return true;
2813
+ if (this.instance.error) {
2814
+ this.control.setErrors(this.instance.component.validate);
2815
+ return true;
2816
+ }
2817
+ else {
2818
+ return false;
2819
+ }
2815
2820
  }
2816
2821
  getErrorMessage() {
2817
2822
  if (this.instance.error && this.instance.error.messages) {