ngx-render-material-forms 1.5.4 → 1.5.6

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.
@@ -2562,6 +2562,7 @@ class MaterialSelectComponent extends MaterialComponent {
2562
2562
  this.productsloadingFlag = false;
2563
2563
  this.searching = false;
2564
2564
  this.productList = [];
2565
+ this.selectedValue = '';
2565
2566
  // Variable to hold the reference to the current panel element
2566
2567
  this.currentPanelElement = null;
2567
2568
  this.openCounter = 1;
@@ -2765,6 +2766,7 @@ class MaterialSelectComponent extends MaterialComponent {
2765
2766
  this.searchQuery = '';
2766
2767
  this.searching = false;
2767
2768
  this.productList = [];
2769
+ this.selectedValue = '';
2768
2770
  this.loadData(this.pageNumber, this.pageSize, this.searchQuery);
2769
2771
  }
2770
2772
  }
@@ -2782,8 +2784,8 @@ class MaterialSelectComponent extends MaterialComponent {
2782
2784
  else {
2783
2785
  this.removePanelScrollEvent();
2784
2786
  this.searching = false;
2785
- let selectedValue = this.getValue();
2786
- if (selectedValue?.toString().length == '' || this.searchQuery == '' || this.productList?.length === 0) {
2787
+ this.selectedValue = this.getValue();
2788
+ if (this.selectedValue?.toString().length == 0) {
2787
2789
  this.productList = [];
2788
2790
  this.pageNumber = 1;
2789
2791
  this.pageSize = 20;