Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate function did not work when input continuous comma #118

Open
gengengengengen opened this issue Apr 2, 2020 · 0 comments
Open

Validate function did not work when input continuous comma #118

gengengengengen opened this issue Apr 2, 2020 · 0 comments

Comments

@gengengengengen
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant