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

add: new boolean type prop to consider or not consider spaces as valid characters in OTP input #397

Closed

Conversation

justrawat
Copy link

@justrawat justrawat commented May 6, 2023

  • What does this PR do?
    The PR adds a new prop to toggle if the white space in copied value should be considered a valid character on paste operation.

  • Any background context you want to provide?
    Adds functionality for this requested feature.

@justrawat
Copy link
Author

justrawat commented May 12, 2023

Hey @prateek3255 @apollonian
Can you take a look at this PR and see if this is good to merge?
Let me know if something else is required.

src/index.tsx Show resolved Hide resolved
@justrawat
Copy link
Author

Hey @prateek3255 Did you get a chance to look into this?
When can I expect this to get merged?

src/index.tsx Outdated Show resolved Hide resolved
example/src/App.tsx Show resolved Hide resolved
@justrawat
Copy link
Author

@prateek3255 I've added the required documentation. Please re-review, thanks.

@prateek3255
Copy link
Collaborator

prateek3255 commented Sep 26, 2023

Adding an explicit event handler for pasting with #415 so that user can get explicit control of the input, so this is not needed anymore

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

Successfully merging this pull request may close these issues.

2 participants