-
Notifications
You must be signed in to change notification settings - Fork 406
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
Rerender component after change value and lost focus #782
Comments
I suspect some additional thing is happening on your parent component. most likely you are breaking rule of reconciliation, can't say to confirm with the provided code. |
Nothing else happens in my parent component. It simply renders the PatternFormat, sets up the state, and handles the state change. |
It would be easy for me to tell the reason if you can provide some repro link.
Also, can you tell which version are you using? |
Same thing is happening with me only in webpack production. I am using 5.3.1. |
I faced the same problem with a customInput, please memoize your custom input |
Describe the issue and the actual behavior
Hello. I faced such problem. After entering the value in the input, my focus disappears. As a result of debugging, I found that the reason is the re-rendering of the input component after entering one character. Could you tell me what is the reason for this behavior.
I also noticed that this behavior appears if you build the project in webpack production mode. There is no such problem in development mode.
Describe the expected behavior
I expect focus to be saved when entering a value in an input
Provide steps to reproduce this issue
Please check the browsers where the issue is seen
The text was updated successfully, but these errors were encountered: