It works fine in chrome and other browser but fails to work in IE browsers. When I try to run it chrome it works fine even if I give tabindex=1, but it fails to give the same desired output in IE browsers.
<div>
<ul>
<ng-container *ngIf="namelist.length; else doElse">
<li
*ngFor="let title of namelist; index as i"
#list
class="some class XYZ"
(click)="selectSomething(title)"
(keydown.enter)="makeSelection(title)"
>
<div
class="some class PQR"
tabindex="0"
(keydown.arrowup)="prev(listElements, i)"
(keydown.arrowdown)="next(listElements, i)"
>
<span class="some class abcd">
{{title}}
</span>
</div>
</li>
</ng-container>
</ul>
</div>