mentions ui fix
This commit is contained in:
parent
2283f95a5f
commit
210e3bb552
|
@ -6,6 +6,7 @@ import { AnnotationDialogComponent } from './annotation-dialog.component';
|
|||
import { AutoCompleteModule } from '@app/library/auto-complete/auto-complete.module';
|
||||
import { TextAreaWithMentionsComponent } from '../components/text-area-with-mentions.component';
|
||||
import { NgxMentionsModule } from 'ngx-mentions';
|
||||
import { OverlayModule } from '@angular/cdk/overlay';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
|
@ -14,6 +15,7 @@ import { NgxMentionsModule } from 'ngx-mentions';
|
|||
FormattingModule,
|
||||
AutoCompleteModule,
|
||||
NgxMentionsModule,
|
||||
OverlayModule,
|
||||
],
|
||||
declarations: [
|
||||
AnnotationDialogComponent,
|
||||
|
|
|
@ -26,10 +26,19 @@
|
|||
</mat-form-field>
|
||||
|
||||
<ng-template #menuTemplate
|
||||
let-selectChoice="selectChoice">
|
||||
<ngx-text-input-autocomplete-menu *ngIf="choices" [choices]="choices"
|
||||
[getDisplayLabel]="getDisplayLabel"
|
||||
(selectChoice)="selectChoice($event)">
|
||||
</ngx-text-input-autocomplete-menu>
|
||||
let-selectChoice="selectChoice"
|
||||
>
|
||||
<div cdkOverlayOrigin #trigger="cdkOverlayOrigin">
|
||||
<ng-template
|
||||
cdkConnectedOverlay
|
||||
[cdkConnectedOverlayOrigin]="trigger"
|
||||
cdkConnectedOverlayOpen="true"
|
||||
>
|
||||
<ngx-text-input-autocomplete-menu *ngIf="choices" [choices]="choices"
|
||||
[getDisplayLabel]="getDisplayLabel"
|
||||
(selectChoice)="selectChoice($event)">
|
||||
</ngx-text-input-autocomplete-menu>
|
||||
</ng-template>
|
||||
</div>
|
||||
</ng-template>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue