Closed marcusmichaels closed 5 days ago
Hey @marcusmichaels it seems iOS always show up the selection; it's not possible to hide it. See https://github.com/guilhermerodz/input-otp/issues/32
Another victim of an iOS quirk 😅😭, thanks for looking into it anyway
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:
https://github.com/user-attachments/assets/82aa62c5-dafd-4041-9530-1be06fdc6a7a
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
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.