ngx-render-material-forms 2.2.4 → 2.2.5

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.
@@ -4054,6 +4054,15 @@ class AddOnProductsComponent {
4054
4054
  if (!event.target.value) {
4055
4055
  this.form.controls['searchProductName'].setValue('');
4056
4056
  this.searchQuery = '';
4057
+ const search = this.searchQuery;
4058
+ const levelOneId = this.levelOneId ? this.levelOneId : 0;
4059
+ const levelTwoId = this.levelTwoId ? this.levelTwoId : 0;
4060
+ const levelThreeId = this.levelThreeId ? this.levelThreeId : 0;
4061
+ const levelFourId = this.levelFourId ? this.levelFourId : 0;
4062
+ if (this.shouldResetTable(search, levelOneId, levelTwoId, levelThreeId, levelFourId)) {
4063
+ this.resetTable();
4064
+ return;
4065
+ }
4057
4066
  }
4058
4067
  }
4059
4068
  resetTable() {