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

Changing input length does not re-render the component with new input length #193

Open
sourabh-joshi opened this issue Jul 5, 2021 · 3 comments

Comments

@sourabh-joshi
Copy link

This occurs when dynamically passing the input length. Check this sandbox I have created.
https://codesandbox.io/s/react-pin-input-forked-13y1m?file=/src/App.js

@arunghosh
Copy link
Owner

Thank you for reporting & sharing the codesandbox. I will look into this issue. In case you have a fix, a PR is most welcome :)

@sourabh-joshi
Copy link
Author

This can help. I have used one of the method mentioned in this blog to work with it for now.
https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html

@arunghosh
Copy link
Owner

Thank you for sharing

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

No branches or pull requests

2 participants