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

[BUG] - Paste in Input OTP with current text does not overwrite #4990

Open
stefandevo opened this issue Mar 5, 2025 · 1 comment
Open

[BUG] - Paste in Input OTP with current text does not overwrite #4990

stefandevo opened this issue Mar 5, 2025 · 1 comment

Comments

@stefandevo
Copy link

HeroUI Version

2.7.4

Describe the bug

Using Paste in the Input OTP does not set the value from the clipboard to the input when it already has data.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Using Input OTP control, enter a "wrong" code (basically enter something into the boxes), then go to the first box, and Paste a code from the clipboard.

Expected behavior

When you paste a valid code (meaning, when you want 6 digits and you paste 6 digits) always put that value into the Input OTP whether the control already has a value or not.

Screenshots or Videos

No response

Operating System Version

All

Browser

Chrome

Copy link

linear bot commented Mar 5, 2025

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

No branches or pull requests

1 participant