ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

Typeahead container not visible

Open lucifer-AM opened this issue 9 years ago • 2 comments

I am implementing Static array typleahead in angualr 2 app inside a table td but I am not able to see the typeahead-container which can be seen in the inspector but not visible on DOM. Please help.!!!!

HTML:-

<td><input [(ngModel)]="selected" [typeahead]="states" class="form-control"></td>

TS:-

public selected:string; public states:string[] = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey', 'New Mexico', 'New York', 'North Dakota', 'North Carolina', 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming'];

lucifer-AM avatar Aug 21 '17 04:08 lucifer-AM

Does the typeahead work if it is outside the table? Maybe the cell's margins are not big enough?

eyerean avatar Aug 21 '17 11:08 eyerean

@lucifer-AM set container="body" it should help, if not - drop me a note, I will reopen issue

valorkin avatar Aug 24 '17 10:08 valorkin