arunghosh / arunghosh/react-pin-input
Controlled Component
- Dominant language
- JavaScript
- Stars
- 112
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
I need to include this as a controlled component for use in forms, (inside a wrapped field with something like React Final Form),
As such the initialvalue may change (say for instance via form reset).
Once the object is rendered, change to initialvalue has no effect
Can you please expose a method (like ref.clear()) to set the current value, that way I can use a react side effect to listen to changes in my wrapped component, and then inject these changes into your pin code component.
Thanks.
Contributor guide
No contributing guide indexed for this repository
Research direction
No files or tests are named. Start at the React PIN input component entry point and trace how initialvalue and its public ref are handled; done means a parent can update the current PIN after render, including during a form reset.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100