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

Page automatically scrolls because of focus to the next element

Open debjits1 opened this issue 5 years ago • 4 comments

In iOS devices, I am facing this issue. I am using react-otp-input inside a material-ui dialog. Whenever I add a new number in the input, it focuses on the next input, and the page in the background auto scrolls. Also, the dialog flickers a lot on the same event. This happens becuase the focus method automatically try to scroll to element. Is there a way we can stop the autoscroll on focus?

  • Steps to reproduce the issue:
  • Use react-otp-input inside a material ui Dialog component
  • Fix the Dialog element at bottom of the screen with css properties
  • Try to input number in otp input component

debjits1 avatar Jul 09 '21 07:07 debjits1

@debjits1 Have you fixed it ?

roshan-p avatar Aug 23 '21 06:08 roshan-p

@debjits1 Have you fixed it?

lanhnguyen97 avatar Mar 25 '22 03:03 lanhnguyen97

No, still did not find any solution

debjits1 avatar Mar 26 '22 15:03 debjits1

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

ritikbanger avatar Aug 09 '22 17:08 ritikbanger

Can you add a reproducible sandbox/demo video here, and reopen the issue again?

prateek3255 avatar Mar 25 '23 15:03 prateek3255