matiastucci/vue-input-tag

Auto Adding on ","(188) key.

comeondown opened this issue · 6 comments

Try write tags on Cyrillic. I find out that when i write letter 'б' component automatically triggers to add new tag. This letter stay on same button with ',' on keyboard.

v-on:keydown.enter.188.tab.prevent.stop="addNew(newTag)"

This 188 thing on v-on:keydown.enter.188.tab.prevent.stop="addNew(newTag)" made the package unusable on Persian/Farsi keyboards. The key presents "و" character in this language.

@mdaliyan I am not very familiar with this kind of keyboards, any recommendation or suggestion to fix that?

If it had a way that we could ignore "," as a separator that would be great. That's all.

#45 fixes this

thanks, that looks easy to use

<input-tag :tags.sync="tagsArray" add-tag-on-keys="[13,9]"></input-tag>

but wasn't that easier to use v-model instead of tags property?

<input-tag v-model="tagsArray" add-tag-on-keys="[13,9]"></input-tag>