Closed bluepioupiou closed 4 years ago
The lib provides no style by default (and it's not the aim). On the other hand, what can be done is to add a new event when the user presses a bad key. Or add a specific className
. What do you think?
seems good enough for me !
I think the best will be to execute a method passed as props and let the responsible component decide what to do of that
Added both in d824a46450b939bb23f2332fbd2eacd9f12fb125:
When we enter a key that is not allow, we don't really see that it's not a bug. Maybe display a red border hat shake a little before comming back to normal on the highlited input