Using keys to add tags that are different than 9 (tab) and 13 (enter) doesn't clear the tag's content, carrying it over + the pressed key instead.
Example for reproduction:
Access the JSFiddle link above
Enter anything and press enter. Tag is added. Same thing hapens when using tab. This is ok.
Enter anything and press ,. While it works and a tag is added, you'll see the text of the added tag + a comma. For example, if you type 123 and then comma, a tag is added but the text 123, remains.
You can try the same thing with the space key in the example since I added the 32 key to test as well. It doesn't work too.
Version of
Vue
I'm using?: 2.5.16 Version ofvue-input-tag
I'm using?: 1.0.6Small JSFiddle showing the issue: https://jsfiddle.net/eywraw8t/409731/
Using keys to add tags that are different than 9 (
tab
) and 13 (enter
) doesn't clear the tag's content, carrying it over + the pressed key instead.Example for reproduction:
enter
. Tag is added. Same thing hapens when usingtab
. This is ok.,
. While it works and a tag is added, you'll see the text of the added tag + a comma. For example, if you type123
and then comma, a tag is added but the text123,
remains.space
key in the example since I added the32
key to test as well. It doesn't work too.