@alauda/ui 6.4.0 → 6.4.1-beta
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.
package/fesm2020/alauda-ui.mjs
CHANGED
|
@@ -1174,7 +1174,9 @@ class AutocompleteComponent {
|
|
|
1174
1174
|
this.directive$$ = new ReplaySubject(1);
|
|
1175
1175
|
}
|
|
1176
1176
|
ngAfterContentInit() {
|
|
1177
|
-
this.hasVisibleSuggestion$ = this.suggestions.changes.pipe(startWith(this.suggestions), switchMap((suggestions) =>
|
|
1177
|
+
this.hasVisibleSuggestion$ = this.suggestions.changes.pipe(startWith(this.suggestions), switchMap((suggestions) => suggestions.length > 0
|
|
1178
|
+
? combineLatest(suggestions.map(suggestion => suggestion.visible$))
|
|
1179
|
+
: of([])), map(visible => visible.some(Boolean)), distinctUntilChanged(), debounceTime(0), tap(() => {
|
|
1178
1180
|
this.cdr.markForCheck();
|
|
1179
1181
|
}), publishReplay(1), refCount());
|
|
1180
1182
|
this.hasContent$ = combineLatest([
|