Skip to content

Commit 369ee93

Browse files
fix: autocomplete circle dependencies (#525)
Co-authored-by: JounQin <admin@1stg.me>
1 parent 607c016 commit 369ee93

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/green-planets-act.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@alauda/ui": patch
3+
---
4+
5+
fix: autocomplete circle dependencies

src/autocomplete/suggestion/suggestion.component.ts

+3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import {
44
ChangeDetectorRef,
55
Component,
66
ElementRef,
7+
Inject,
78
Input,
89
ViewChild,
910
ViewEncapsulation,
11+
forwardRef,
1012
} from '@angular/core';
1113
import {
1214
BehaviorSubject,
@@ -62,6 +64,7 @@ export class SuggestionComponent {
6264

6365
constructor(
6466
private readonly cdr: ChangeDetectorRef,
67+
@Inject(forwardRef(() => AutocompleteComponent))
6568
private readonly autocomplete: AutocompleteComponent,
6669
) {
6770
this.selected$ = combineLatest([

0 commit comments

Comments
 (0)