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] Line appears on the left when OTP is fully populated on iOS #75

Closed
marcusmichaels opened this issue Nov 6, 2024 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@marcusmichaels
Copy link

Version of the library: latest

Expected Behavior

When the OTP is complete, no line should appear on the far left.

Current Behavior

On iOS Safari, when the OTP is complete a line appears on the far left, it disappears if you remove a character, and it reappears on completion. See below:

Screenshot 2024-11-06 at 17 07 34

Screen.Recording.2024-11-06.at.16.34.17.mov

Possible Solution

I've tried to mask it but to no avail – it appears to be something to do with the iOS native caret (but I could be wrong)

Steps to Reproduce

  1. Visit https://ui.shadcn.com/docs/components/input-otp in an iOS browser (Chrome or Safari)
  2. Make sure the theme is light mode so you can see the line
  3. Fill out any of the OTP examples – note that on the last char entered a line appears to the left of the container

Context (Environment)

I'm putting together an OTP component and recently moved from an in-house version to shadcn for consistency. It's all good on desktop but on iOS (which is where the majority of our customers are) it shows the little line before the code is submitted.

@marcusmichaels marcusmichaels added the bug Something isn't working label Nov 6, 2024
@guilhermerodz
Copy link
Owner

guilhermerodz commented Nov 12, 2024

Hey @marcusmichaels it seems iOS always show up the selection; it's not possible to hide it. See #32

@guilhermerodz guilhermerodz closed this as not planned Won't fix, can't repro, duplicate, stale Nov 12, 2024
@marcusmichaels
Copy link
Author

Another victim of an iOS quirk 😅😭, thanks for looking into it anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants