You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might not be a bug but its impossible to paste anything into the otp component which, for me, makes it unusable on mobile. I have also never found a site with OTP without pasting possible.
I didnt find any issue or discussion about it anywhere about this.
I tried a bit to look into it myself but it looks to me like its built in a very hacky way and i dont know if its even possible. I think there has to be an actual input to press but i can see it scales its width to the content.
I can put some more time into it but would love to hear an opinion first, like if its something you would xonsider supporting or how to approach it.
Thank you @Mathiu
for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I
find a solution.
In the meantime providing more details and reproduction links would be
helpful.
That is correct, right click paste doesn't work. On mobile, you click on the "input", keyboard show up but not even copyboard suggestions show up and long-click paste does not work either.
It is working for you in any way?
edit: I should have mentioned that I test it on Firefox Mobile (Android).
Yes. Ok mobile the android keyboard has paste.
I suppose iOS should have also. When you click the otp you are in an normal input, but without pointer events. Else you could end up in another position than last. You can try to set pointer-events-auto on input and check if it's ok for you
When input is clicked, the keyboard opens up, both Android and iOS keyboards have paste button (no need to manually hold the input, open context menu, choose paste).
And if the input has autocomplete="one-time-code" the keyboard will show the code value from the SMS.
Activity
github-actions commentedon Aug 18, 2026
Thank you @Mathiu for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.
pdanpdan commentedon Aug 18, 2026
You mean you cannot right-click paste?
Because all other ways work.
Mathiu commentedon Aug 18, 2026
That is correct, right click paste doesn't work. On mobile, you click on the "input", keyboard show up but not even copyboard suggestions show up and long-click paste does not work either.
It is working for you in any way?
edit: I should have mentioned that I test it on Firefox Mobile (Android).
pdanpdan commentedon Aug 18, 2026
Yes. Ok mobile the android keyboard has paste.
I suppose iOS should have also. When you click the otp you are in an normal input, but without pointer events. Else you could end up in another position than last. You can try to set pointer-events-auto on input and check if it's ok for you
saadeghi commentedon Aug 19, 2026
When input is clicked, the keyboard opens up, both Android and iOS keyboards have paste button (no need to manually hold the input, open context menu, choose paste).
And if the input has
autocomplete="one-time-code"the keyboard will show the code value from the SMS.Please let me know if you have any questions.
Mathiu commentedon Aug 19, 2026
I really appreciate your help.
Thank you!