Skip to content
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

how to eliminate blank spaces when pasting #382

Open
VishnuPrasadhSR opened this issue Mar 3, 2023 · 1 comment
Open

how to eliminate blank spaces when pasting #382

VishnuPrasadhSR opened this issue Mar 3, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@VishnuPrasadhSR
Copy link

*The issue is that when I paste a value with whitespace, it also counts the whitespace as value.
*For instance, if I enter numInputs=6 and my value is space12space34space56, when I copy and paste it, it displaysspace12space34.
*I tried using trim, but it didn't work. I also tried replace(/\s/g, "") , but it replaced the input value with an empty string.

  • Steps to reproduce the issue:

  • Relevant error messages and/or screenshots:

@prateek3255 prateek3255 added the enhancement New feature or request label Mar 25, 2023
@prateek3255
Copy link
Collaborator

We can probably add another prop for this that let's you customize how the component would parse the pasted value. Would you like to work on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants