@sumaris-net/ngx-components 18.8.9 → 18.8.11

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.
@@ -8586,8 +8586,8 @@ class MatAutocompleteField {
8586
8586
  console.debug(this.logPrefix + ' Asking to reloadItems()', value);
8587
8587
  // Force a refresh
8588
8588
  this._reload$.next(value || (this.showAllOnFocus && this.suggestLengthThreshold <= 0 ? '*' : this.formControl.value));
8589
- // Clear the search bar (if hidden)
8590
- if (this.mobile && !this.matSelect.panelOpen && this.ionSearchbar) {
8589
+ // Clear the search bar (only if hidden)
8590
+ if (this.matSelect && !this.matSelect.panelOpen && this.ionSearchbar) {
8591
8591
  this.ionSearchbar.value = null;
8592
8592
  }
8593
8593
  }