Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typeahead does not show list on focus when typeaheadMinLength="0" set #1559

Closed
tzielins opened this issue Jan 25, 2017 · 6 comments
Closed

Comments

@tzielins
Copy link

tzielins commented Jan 25, 2017

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)

@valorkin
Copy link
Member

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

@weglarzdamian
Copy link

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

@valorkin
Copy link
Member

[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

@valorkin
Copy link
Member

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

@rcadhikari
Copy link

rcadhikari commented Mar 8, 2018

@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.

@rcadhikari
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants