-
-
Notifications
You must be signed in to change notification settings - Fork 208
How to forbit the use of a character in a chip label ? #211
Comments
You can achieve that by adding the keycode for space (32) to the |
Sorry my question was uncomplete, but my previous title was better I think... Of course I did the newChipKeyCodes thing, but let's imagine you want at least 3 characters long chips... Clearly, I want to forbid the use of a character in chip label, while being able to use this character to create a chip (which newChipKeyCodes achieves). |
Any news ? |
I did a pull request that can help you, but we have to wait the merge. See here |
@nsaubi @JonathasRodrigues It's been a while (I was pretty busy the last 6 months), but this is finally possible by using controlled mode for the text input with A new release will be out in a few minutes. 🚀 |
Hi,
I would like the "space" to be my chip creator, BUT, I don't want to create empty chips (done with "handleBeforeAdd") and I don't want the input to contains the typed "space" (which "handleBeforeAdd" can't do).
How can I achieve that ? I bet I would need to set the state of the embedded input through some "onInputChange", but it doesn't seems to be possible. Any idea ?
Thanks
The text was updated successfully, but these errors were encountered: