Ngx-chips: addOnBlur breaks autocomplete selection

Created on 13 Mar 2017  路  5Comments  路  Source: Gbuomprisco/ngx-chips

Tested this with version 0.9.5

When setting addOnBlur to true and with autocomplete options supplied ... when I start typing and it matches one or more autocomplete and I either move the mouse cursor down to select one or I use the down arrow keys to select one, the autocomplete dropdown disappears and my input it cleared.

Looking at the code it seems like the this.inputForm.onBlur is firing because focus is placed on the autocomplete dropdown? I'm seeing similar behavior with clearOnBlur (input it wiped out when I try to select an autocomplete item - but in this case the autocomplete dropdown stays open)

bug

All 5 comments

Hi @neilharding,

Thanks for reporting - I will have a look!

Hi @neilharding,

I changed it so if the autocomplete is open, the two events above won't fire. It's the only reasonable way I'd found. Let me know if works with you.

Works perfect now! Thanks for all your work on this component... it's pretty awesome.

Thanks :)

Hi,

I am facing the same issue.
When i move the cursor away from the input field , the drop down disappears.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ImChamZ picture ImChamZ  路  5Comments

manilsson picture manilsson  路  4Comments

rspandi1985 picture rspandi1985  路  4Comments

HDaghash picture HDaghash  路  4Comments

lukas-bernert picture lukas-bernert  路  4Comments