Documentation error in keyfilter #3406
Unanswered
AustriaDave
asked this question in
PrimeReact
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://primereact.org/keyfilter/#regex
backslash missing, instead of setting
/[^\s]/
you disabled the letter "s"<InputText id="spacekey" keyfilter={/[^s]/} className="w-full" />
the example works fine by disabling the whitespaces, it's just a documentation error, if someone like me copies that code and wonders for half an hour why it's not working
Beta Was this translation helpful? Give feedback.
All reactions