-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
it is not possible to reset input value for typeahead component #2816
Milestone
Comments
Does anybody know a possible workaround for this? I don't care how dirty it is, I just need it to work :D |
Try this:
|
The problem occurs here: https://github.com/ng-bootstrap/ng-bootstrap/blob/master/src/typeahead/typeahead.ts Line 224:
Whenever pop-up is dimissed, the previous backed up value was written back. Proposed change:
|
wannadream
added a commit
to wannadream/ng-bootstrap
that referenced
this issue
Nov 5, 2018
benouat
pushed a commit
to benouat/ng-bootstrap
that referenced
this issue
Nov 28, 2018
benouat
pushed a commit
to benouat/ng-bootstrap
that referenced
this issue
Dec 5, 2018
benouat
pushed a commit
to benouat/ng-bootstrap
that referenced
this issue
Dec 5, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description:
For the typeahead component, it is not possible to clear the model after the results list appears. If the results list doesn't appear, the model can be cleared from a button without problem
Steps to reproduce:
You can fork a StackBlitz from one of our demos and use it as a starting point.
Versions of Angular, ng-bootstrap and Bootstrap:
Angular: 6.1.0
ng-bootstrap: 3.3.0
Bootstrap: 4.0
The text was updated successfully, but these errors were encountered: