-
Notifications
You must be signed in to change notification settings - Fork 158
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
Not allow spacebar #5
Comments
Hi @folkevil, This happens because, in default options, spacebar is a key that add a new tag. If you want to avoid it, you can use one of the three way to customize the behavior. The option is "no-spacebar" You can find here all info. Let me know If you solve it ;) |
Some sample code: First wayIn your main JS file, type:
And then:
Second wayAdd a data attribuite to your tagBox:
And then in your main JS file, type:
|
Please, update your taggingJS version to v1.2.5. |
Just wanted to note that I'm really glad no-spacebar is an option. We are looking at porting over from Selectize (http://brianreavis.github.io/selectize.js/) and need to have legacy support for spaces. Very nice library, thanks for your hard work! |
thanks for your hard work @sniperwolf |
In some cases i want to put space in strings, but when i type space button it create new tag.
The text was updated successfully, but these errors were encountered: