I am using NgbTypeahead component of ng-bootstrap. I am facing an issue where dropdown closes if I click in the input box while the focus is already there.
<input id="typeahead-template" type="text" class="form-control"
[(ngModel)]="model" [ngbTypeahead]="search" [resultTemplate]="rt"
[inputFormatter]="formatter" />
Here are steps and plunker to reproduce the issue: http://plnkr.co/edit/rxOhDy72YWlLy9U4Ujcd?p=preview
- Type al in the input box, this will open the dropdown,
- Click in the input box: results in closing the dropdown.
You can keep click inside the input box but the dropdown will stay closed. It will only open if you type an additional word.