vue-input-tag icon indicating copy to clipboard operation
vue-input-tag copied to clipboard

Validate function did not work when input continuous comma

Open gengengengengen opened this issue 4 years ago • 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.

gengengengengen avatar Apr 02 '20 04:04 gengengengengen