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

Inspect invalid tag #863

Open
antonioaltamura opened this issue Jun 2, 2018 · 0 comments
Open

Inspect invalid tag #863

antonioaltamura opened this issue Jun 2, 2018 · 0 comments

Comments

@antonioaltamura
Copy link

antonioaltamura commented Jun 2, 2018

Hi, I read the docs about onInvalidTag, how can I access that $tag value?
Also, there is a way I can see what's the problem with that tag, some kind of error message?
This is the code, I cannot add a second 'free' tag (by 'free' I mean not chosen from the dropdown menu).
There is something I'm missing?

 <tags-input ng-model="model.authors" class="form-control"
                            display-property="lname"
                            key-property="id"
                            onInvalidTag={alert('1')}>
<auto-complete source="loadTags($query)"></auto-complete>
</tags-input>

Edit: it looks like key-property="id" is a problem in case of multiple tags not coming from the autocomplete resource. There is a way to handle this problem?

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