Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting in a PIN should move focus to the last digit #70

Open
rhysforyou opened this issue Nov 15, 2018 · 1 comment · May be fixed by #154
Open

Pasting in a PIN should move focus to the last digit #70

rhysforyou opened this issue Nov 15, 2018 · 1 comment · May be fixed by #154

Comments

@rhysforyou
Copy link

rhysforyou commented Nov 15, 2018

Right now pasting PINs works but, for example, pasting a four digit PIN into the first text input of a four digit input results in the second digit's input being focused. Ideally focus would move to the first empty input after the pasted content, or if all the inputs are filled out, the last one.

acusti added a commit to acusti/react-code-input that referenced this issue Oct 14, 2021
@acusti acusti linked a pull request Oct 14, 2021 that will close this issue
@acusti
Copy link

acusti commented Oct 15, 2021

i know this is three years later, but i updated the component to work this way (focus moves to the first empty input after the pasted content, or if all the inputs are filled out, the last one) on paste. i also published it to npm as @acusti/react-code-input if you want to try it out (npm i @acusti/react-code-input or yarn add @acusti/react-code-input).

acusti added a commit to acusti/react-code-input that referenced this issue Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants