matiastucci/vue-input-tag

Validate function did not work when input continuous comma

gengengengengen opened this issue · 0 comments

Version of Vue I'm using?: 2.5.17

Version of vue-input-tag I'm using?: 2.0.6

Hello, I tried to prevent the duplicate tags when using separator 'comma', but when I input tags with continuous comma, this component will add tags with 'comma' like this:

image

I added a validate function (e.g. return true when arr.indexOf(newTag) === -1), and a normalize function (e.g. return newTag.replace(',', '').trim()), but they all did not work.