react-otp-input icon indicating copy to clipboard operation
react-otp-input copied to clipboard

Iphone Safari browser does not show typed numbers in OTP input fields.

Open ovbutt opened this issue 5 years ago • 5 comments

  • Steps to reproduce the issue:
  1. Open website in Iphones Safari browser
  2. Try entering numbers in input fields
  3. The fields will take the input but will not show the value in fields.
  • Relevant error messages and/or screenshots:

WhatsApp Image 2020-12-28 at 2 32 11 AM

ovbutt avatar Dec 27 '20 21:12 ovbutt

image I'm having this same problem. It is appearing for me on iphones 7, 8, and my ipad in Chrome and Safari.

svota avatar Jan 04 '21 13:01 svota

I am also experiencing this issue. pls help

josephtesla avatar Mar 03 '21 12:03 josephtesla

@josephtesla @svota One workaround can be you can decrease the font size in case of safari mobile web. This is what I did and it worked for me

ovbutt avatar Mar 03 '21 12:03 ovbutt

@josephtesla setting 'padding:0' in inputStyle prop works

manjariParthiban avatar Mar 15 '21 11:03 manjariParthiban

The feature is available in: https://www.npmjs.com/package/react18-input-otp

ritikbanger avatar Aug 09 '22 17:08 ritikbanger

Setting padding:0 works, But then how to apply padding styles on input?

praty22 avatar Feb 04 '23 08:02 praty22

Setting padding:0 works, But then how to apply padding styles on input?

width: 49px !important; height: 46px; padding: 0

Found a workaround! This will help to provide the custom design to inputs without giving padding, Padding needs to be kept at 0 otherwise the number does not appear. This is a bug I guess.

praty22 avatar Feb 04 '23 08:02 praty22

You can now fully customize the input elements with v3

prateek3255 avatar Mar 25 '23 15:03 prateek3255

padding: 0

yeah this worked

Madanraj1 avatar Apr 13 '23 04:04 Madanraj1