arunghosh / arunghosh/react-pin-input
Cant loose Focus programatically
- Dominant language
- JavaScript
- Stars
- 112
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
using "OnComplete" function, I am trying to focus on the next input element on my webpage, however, I am not able to focus. It only works when the last character in pin input is removed and added again. but not the first time.
Pin Input somehow maintains the focus unless manually clicked somewhere in the background.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the PIN input behavior with an OnComplete callback that focuses the next input. Inspect how focus is retained after completion and compare it with the case where the final character is removed and re-added. Done means the next input receives focus on the first completion without requiring another edit or background click.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100