Closed Kathuria closed 3 years ago
Thanks for reporting this. This could be an issue with the demo site and not the component. (Were you able to reproduce the issue in CodeSandbox demo) Further investing.
@apollonian : It will occur if provided inputNums count updated with string value. It won't be reproduced on Sandbox.
👍 Yep, saw that as well. Pushing a fix..
@Kathuria Pushed a fix for this since it was a critical one with https://github.com/devfolioco/react-otp-input/commit/93dfee48c6bfee6d95910d30c634ce3dfa350090.
Closing this PR out now 👀👏
255 - Updated condition for placeholder length with type check
and In demo added maxLength for placeholder as well.
What does this PR do? Fix Placeholder issue - placholder not updating value after change in input Number count.
Any background context you want to provide? https://github.com/devfolioco/react-otp-input/issues/255
Screenshots and/or Live Demo