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

Addition of autofocus prop

Open kunalmhatre opened this issue 6 years ago • 9 comments

Describe the Feature Request

Hi again, I request you to add autofocus prop to the component, depending on which the autofocus HTML attribute will be set on the first input box.

Why? For better user accessibility after initial render.

kunalmhatre avatar Feb 08 '19 13:02 kunalmhatre

@ajayns @apollonian - Can I work on this?

rimildeyjsr avatar Oct 03 '19 00:10 rimildeyjsr

Yes please @rimildeyjsr! ✌️

apollonian avatar Oct 03 '19 06:10 apollonian

@apollonian @ajayns - Hey I need some help with the issue, I need to add an autofocus prop (according to the issue) to the component, but isn't shouldAutoFocus doing the exact thing? If it is, then this issue is redundant.

Am I missing something here? Need some clarification 😅

rimildeyjsr avatar Oct 05 '19 15:10 rimildeyjsr

@apollonian @ajayns - Hey I need some help with the issue, I need to add an autofocus prop (according to the issue) to the component, but isn't shouldAutoFocus doing the exact thing? If it is, then this issue is redundant.

Am I missing something here? Need some clarification 😅

We need functionality to focus on the first element. Let's say we encountered an error and we want to erase the value and focus to the first box of the otp input

robinmehra95 avatar Aug 19 '20 14:08 robinmehra95

Is it open,I can work on this

gagandeepp avatar Oct 01 '20 11:10 gagandeepp

if its open , i would like to work on it

CadencePrestissimo avatar Oct 01 '20 18:10 CadencePrestissimo

@kunalmhatre @robinmehra95 Can you please check this pr for supporting the feature.

jitinmaher avatar Oct 06 '20 16:10 jitinmaher

Hey @jitinmaher, nice work, the live demo in your PR looks like a good solution to me for the issue mentioned in this comment https://github.com/devfolioco/react-otp-input/issues/14#issuecomment-676439567 - I am not sure though if this is exactly what @robinmehra95 wanted, so I think you should check with them as well. Sorry, but since I opened this PR way back in early 2019 as a user of this repository, I would suggest you to check with the contributors of this repository for any feedback on your PR. All the best! :slightly_smiling_face:

kunalmhatre avatar Oct 11 '20 17:10 kunalmhatre

Hi @robinmehra95 , is this issue still open?

jitinmaher avatar Oct 12 '20 09:10 jitinmaher