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] When using [editable]=false and open on focus/click, the model value is erased when clicked or focused #3262

Closed
wilker7ribeiro opened this issue Jun 28, 2019 · 0 comments · Fixed by #3267

Comments

@wilker7ribeiro
Copy link

Bug description:

When using editable=false and a list of objects for the typeahead, after picking some item, and then just clicking the typeahead component makes the model be erased.

I think that's not how it suposed to be.

Here is the stackblitz (forked ngbBootstrap examples): https://stackblitz.com/edit/ngb-bootrstap-typeahead-editable-false-clears-input-bug

IAfanasov added a commit to IAfanasov/ng-bootstrap that referenced this issue Jun 29, 2019
- for editable false clear the value on input change instead of on suggections fetched

Closes ng-bootstrap#3262
IAfanasov added a commit to IAfanasov/ng-bootstrap that referenced this issue Jun 29, 2019
- for editable false clear the value on input change instead of on suggestions fetched

Closes ng-bootstrap#3262
@maxokorokov maxokorokov added this to the 5.1.2 milestone Oct 3, 2019
maxokorokov pushed a commit to IAfanasov/ng-bootstrap that referenced this issue Oct 4, 2019
- for editable false clear the value on input change instead of on suggestions fetched

Closes ng-bootstrap#3262
maxokorokov pushed a commit that referenced this issue Oct 4, 2019
…3267)

Model is cleared on input change instead of after suggestions are fetched

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

Successfully merging a pull request may close this issue.

3 participants