Gbuomprisco / ngx-chips

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

BACKSPACE / DELETE doesn't delete the 1st tag #958

Open lex-rmondal opened 4 years ago

lex-rmondal commented 4 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

The 1st tag can't be deleted when user focus onto it using TAB key. However, other tags can be deleted when user focus onto other tags using TAB key.

Expected behavior

1st Tag should be deleted if user press BACKSPACE / DELETE button.

Minimal reproduction of the problem with instructions (if applicable)

STEPS TO REPRODUCE :

  1. Focus on to the 1st chip / tag using TAB key.
  2. Hit BACKSAPCE / DELETE button.

What do you use to build your app?. Please specify the version

angular-cli

Angular version:

9.1.12

ngx-chips version:

2.1.0

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

all