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

Clear item not working when using custom template and typeahead #247

Closed
andreasfranz opened this issue Feb 9, 2018 · 1 comment · Fixed by #251
Closed

Clear item not working when using custom template and typeahead #247

andreasfranz opened this issue Feb 9, 2018 · 1 comment · Fixed by #251
Assignees
Labels

Comments

@andreasfranz
Copy link
Contributor

Expected behaviour

When using the option [multiple]="true" in combination with a custom template it should be possible to remove single selected items after filtering with typeahead.

Actual behaviour

It does not work and throws an error on the console. Without a custom template it works fine. Looks like an issue with the clearItem function.

I created a Plunker that shows the issue.

  1. click into the select box and search for a term that is not in the list.
  2. try to remove a single item by clicking on the "x" next to the item

More Info

ng-select version: 0.20.1

browser: Google Chrome 64.0.3282.140

reproducible in provided Plunker

@anjmao
Copy link
Member

anjmao commented Feb 9, 2018

@andreasfranz Thanks for good Plunker repro!

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

Successfully merging a pull request may close this issue.

3 participants