Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Min-length="0" is not working as expected #864

Open
deje1011 opened this issue Jun 5, 2018 · 0 comments
Open

Min-length="0" is not working as expected #864

deje1011 opened this issue Jun 5, 2018 · 0 comments

Comments

@deje1011
Copy link

deje1011 commented Jun 5, 2018

Hi there,
Thank you for developing this component!
I tried using ngTagsInput to select items with a property called "displayString". This property may be empty, so my template provides a default value:
{{::data.displayString || 'No name'}

Those items are displayed inside the autocomplete list but cannot be selected, even though min-length is set to 0 and allowed-tags-pattern is set to .*.
So I had a look in the source code and saw that it will never accept empty strings:

let valid = tagText &&

Would it be possible to remove that check?
Thanks a lot,
Jesse

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant