Ngx-chips: Autocompletion dropdown list shown when nothing to show

Created on 26 Jul 2017  路  3Comments  路  Source: Gbuomprisco/ngx-chips

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request/question

Current behavior

I use the following markup

<tag-input [ngModel]="['@item']">
      <tag-input-dropdown [autocompleteItems]="['item1', 'item2', 'item3']"></tag-input-dropdown>
</tag-input>

when I start typing "ite" I see autocompletion dropdown populated with items:
tag-before-bug
and even when I input an nonexistent character I still see the dropdown, but now it's empty:
tag-bug

Expected behavior
Autocompletion dropdown should be hidden when there is nothing to show.

What is the motivation / use case for changing the behavior? (if applicable)
Opened empty dropdown looks really weird :(

What do you use to build your app? (SystemJS, Webpack, angular-cli, etc.). Please specify the version
windows 10,
webpack: 3.3.0

Angular version:
4.3.0

ng2-tag-input version:
"ngx-chips": "1.4.6"

Browser:
All modern: Chrome 59, Firefox 54, Opera 46, IE11, Microsoft Edge 40

bug

Most helpful comment

Hi @AVykhrystyuk can you check out v1.4.9? releasing in a few minutes

All 3 comments

Hi @AVykhrystyuk can you check out v1.4.9? releasing in a few minutes

Hi @Gbuomprisco I've just tested the issue with ngx-chips v1.5.0.
Works like a charm. The issue is gone!
Thank you man

Awesome :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthewerwin picture matthewerwin  路  5Comments

cyrilrbt picture cyrilrbt  路  4Comments

Gbuomprisco picture Gbuomprisco  路  4Comments

Ignasimg picture Ignasimg  路  4Comments

anikets43 picture anikets43  路  4Comments