oferh / ng2-completer

Angular 2 autocomplete component
http://oferh.github.io/ng2-completer/
MIT License
347 stars 172 forks source link

[autofocus]="true" not working in bootstrap modal #459

Open Chiragsorathiya opened 4 years ago

Chiragsorathiya commented 4 years ago

Hello friends I'm trying to set the autofocus property in bootstrap modal but it's not working please check my below code

<ng2-completer 
[(ngModel)]="searchStr1" class="" 
[datasource]="dataService" 
[minSearchLength]="1" 
[openOnClick]="true" 
[selectOnClick]="true"
[openOnFocus]="false" 
[inputClass]="['form-control','block-select']" 
[placeholder]="'search ticker'" 
[autoHighlight]="true" 
[matchClass]="'match'" 
[autofocus]="true" 
[selectOnFocus]="true" 
[fillHighlighted]="false" style="display: inline-block;" name="symbol">
</ng2-completer>