matiastucci / vue-input-tag

:bookmark: Vue.js 2.0 Input Tag Component
https://tucci.me/vue-input-tag
MIT License
537 stars 130 forks source link

Values are not trimmed #98

Closed serge1peshcoff closed 5 years ago

serge1peshcoff commented 5 years ago

Version of Vue I'm using?: 2.5.16 Version of vue-input-tag I'm using?: 2.0.1

So when I type "first", then a comma, then a space, then a "second", the values I have are ["first", " second"] instead of ["first", "second"] (note the space at the beginning of "second").

Can I trim it somehow by specifying an option when creating a component or something like that?

Thanks in advance!

matiastucci commented 5 years ago

https://github.com/matiastucci/vue-input-tag/pull/101/files should give you the flexibility to trim it.