Ngx-bootstrap: Typeahead does not show list on focus when typeaheadMinLength="0" set

Created on 25 Jan 2017  路  6Comments  路  Source: valor-software/ngx-bootstrap

According to documentation this feature is already supported (when typeaheadMinLength="0", the dropdown should open on click listing available options).

But it does not work for me with version 1.3.1, nor it does on the demo page:
http://valor-software.com/ng2-bootstrap/#/typeahead#forms

(It work if after getting inside the input the backspace is pressed)

comp(typeahead) medium (days) issue

Most helpful comment

I've also observed this issue. Workaround for me is:
_[typeaheadMinLength]="0"_
instead of:
_typeaheadMinLength="0"_

All 6 comments

there are some kind of change detection issues, I knew about them
should be fixed soon

I've also observed this issue. Workaround for me is:
_[typeaheadMinLength]="0"_
instead of:
_typeaheadMinLength="0"_

[typeaheadMinLength]="0" this is 0 as number
and this
typeaheadMinLength="0" 0 is a string

it is not workaround, this is how angular @input binding are working

@bartosz nice reason for small PR.
I have seen your comment in email

@valorkin I am still having same issue as I could not show all options (only first 20 items out of 150 are displaying in the dropdown list on foucs). I am using "ngx-bootstrap": "^2.0.2".
Any help would be really appreciated.

Never mind, I managed to show all after adding [typeaheadOptionsLimit]="200" as additional parameter.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

srjkrl20011991 picture srjkrl20011991  路  3Comments

juanitavollmering picture juanitavollmering  路  3Comments

ctrl-brk picture ctrl-brk  路  3Comments

webdev48 picture webdev48  路  3Comments

MihaiHoriaPopescu picture MihaiHoriaPopescu  路  3Comments