@sumaris-net/ngx-components 18.6.19-alpha1 → 18.6.19-alpha2

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.
@@ -8157,10 +8157,9 @@ class MatAutocompleteField {
8157
8157
  }
8158
8158
  this._implicitValue = null; // reset the implicit value
8159
8159
  this.closePanel(); // Close panel
8160
- // Invalidate loaded items (mark as loading should force next focus to reload items)
8160
+ // Invalidate loaded items
8161
8161
  if (invalidateFilteredItems) {
8162
- this._selectedItem = null;
8163
- this.markAsLoading();
8162
+ this.markAsLoading(); // Should force next focus to reload items
8164
8163
  }
8165
8164
  // Move caret to the beginning (fix issue IMAGINE-469)
8166
8165
  if (moveCaretToBeginning) {
@@ -8449,11 +8448,14 @@ class MatAutocompleteField {
8449
8448
  /* -- protected method -- */
8450
8449
  markAsLoading() {
8451
8450
  if (this._$filteredItems.value) {
8451
+ if (this.debug)
8452
+ console.debug(this.logPrefix + ' Marking as loading');
8452
8453
  this._$filteredItems.next(undefined);
8453
8454
  this._itemCount = undefined;
8454
8455
  this._implicitValue = undefined;
8455
8456
  this._onFetchMoreCallback = undefined;
8456
8457
  this._moreItemsCount = 0;
8458
+ this._selectedItem = null;
8457
8459
  this.markForCheck();
8458
8460
  }
8459
8461
  }