0

I have successfully upgraded my project from Angular 9 to Angular 10. I am using the angular-mention library to get the username suggestion when typing @ keyword.

Till Angular 8 this feature was working fine but after the upgrade when I am typing @ keyword it is not showing the list of the users.

below is the screenshot of the issue that I am facing.

enter image description here

as in the above picture we can see that list is coming but I am not able to see the username in the list

my component.html file looks like as follows.

<div class="col-12 col-sm-9 col-lg-9">
  <input
    type="text"
    spellcheck="false"
    id="userSearch"
    class="searchBox"
    [mention]="items"
    style="background-color: #ffff00"
    placeholder="Search user"
    style=""
    (keypress)="getUserDetails()"
    [(ngModel)]="searchText"
  />
</div>

where I am getting items from the typescript file.

can anyone help me with this?

Thanks in Advance!.

Mario Petrovic
  • 7,500
  • 14
  • 42
  • 62
Jayesh Vyas
  • 1,145
  • 3
  • 15
  • 35

2 Answers2

0

Check the items that you are passing from your component to the parent component. Add debugger inside mention-list.ts file and check whether it's getting set or not..

0

just update the library and it will work like charm i'm using the 1.4.0 and it works !!!! good luck

ClubberBen
  • 53
  • 10