Gbuomprisco / ngx-chips

Tag Input component for Angular
MIT License
899 stars 359 forks source link

clearOnBlur does not work when blurring from focused autocomplete item #994

Open tszewcow opened 3 years ago

tszewcow commented 3 years ago

PLEASE MAKE SURE THAT:

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

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

Notice: feature requests will be ignored, submit a PR if you'd like

Current behavior setting clearOnBlur does not remove input text for every scenario. See reproduction steps for details.

Expected behavior setting clearOnBlur to true should remove tag-input text everytime the control is blurred.

Minimal reproduction of the problem with instructions (if applicable)

What do you use to build your app?. Please specify the version Angular CLI: 11.0.7

Angular version: Angular: 11.0.9

ngx-chips version: 2.2.2

Browser: Tested on Chrome 90

tszewcow commented 3 years ago

Bug is simple to reproduce using the ngx-chips demo page, current master state (commit hash: a5a0cb4) Demo part: https://github.com/Gbuomprisco/ngx-chips/blob/master/demo/home/home.html#L68 Capture