Auto Adding on ","(188) key.
comeondown opened this issue · 6 comments
comeondown commented
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)"
mdaliyan commented
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.
ianaya89 commented
@mdaliyan I am not very familiar with this kind of keyboards, any recommendation or suggestion to fix that?
mdaliyan commented
If it had a way that we could ignore "," as a separator that would be great. That's all.
matiastucci commented
#45 fixes this
mdaliyan commented
thanks, that looks easy to use
<input-tag :tags.sync="tagsArray" add-tag-on-keys="[13,9]"></input-tag>
mdaliyan commented
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>