oferh / ng2-completer

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

Confusion on inputClass #316

Closed vandensd closed 7 years ago

vandensd commented 7 years ago

My assumption was that [inputClass]="form-control" would apply that class to the input field and this was not the case. Instead I extended .form-control using the completer class and SCSS (not an option for everyone).

Even after getting the desired styles applied like form-control I then was fighting with the width of the dropdown. This is also unclear in documentation (although classes are listed) what can be done to style the dropdown/input.

oferh commented 7 years ago

try using [inputClass]="'form-control'"

vandensd commented 7 years ago

Ok that worked out. Closing issue. Thank you.