Skip to content

Conversation

@sdomino
Copy link
Contributor

@sdomino sdomino commented Sep 25, 2023

  • What does this PR do?
    Adds the ability to pass in an "onPaste" handler to the wrapper component to handle content getting pasted into the input fields.

  • Any background context you want to provide?
    We needed this functionality. Our solution was to wrap OTPInput in a div that did this but thought it might be useful to others if the component just supported it.

Copy link
Contributor

@prateek3255 prateek3255 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @sdomino. Just a couple change rest looks good

sdomino and others added 2 commits September 26, 2023 08:23
Co-authored-by: Prateek Surana <prateeksurana3255@gmail.com>
Co-authored-by: Prateek Surana <prateeksurana3255@gmail.com>
@sdomino
Copy link
Contributor Author

sdomino commented Sep 26, 2023

Applied those suggestions. Thanks!

@prateek3255 prateek3255 merged commit 6084e4a into devfolioco:main Sep 26, 2023
@prateek3255
Copy link
Contributor

@sdomino This was released with v3.1.0

@prateek3255
Copy link
Contributor

@all-contributors please add @sdomino for code

@allcontributors
Copy link
Contributor

@prateek3255

I've put up a pull request to add @sdomino! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants