I was 100% sure that there is an issue with my code, but then I reproduced it on one of the demos.
This one: "Tags input with custom styling for individual autocomplete matches" on this page: http://mbenford.github.io/ngTagsInput/demos
If you update tags.json to have some tag names with a single letter names and allow to load on focus & on empty, the list of tags is opened as autocomplete. However, if you try selecting one of the single letter tags, they are not getting added.
Instead the input field gets invalid-tag class.
See screenshot:
https://pasteboard.co/GX1znYs.png
I was 100% sure that there is an issue with my code, but then I reproduced it on one of the demos. This one: "Tags input with custom styling for individual autocomplete matches" on this page: http://mbenford.github.io/ngTagsInput/demos
If you update
tags.json
to have some tag names with a single letter names and allow to load on focus & on empty, the list of tags is opened as autocomplete. However, if you try selecting one of the single letter tags, they are not getting added. Instead the input field getsinvalid-tag
class. See screenshot: https://pasteboard.co/GX1znYs.png