-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Rerendering when field is emptied #545
Comments
I'm almost sure it's related to #547 |
Couldn't make it work by setting the password to empty string, the state when the password is untouched is still the same as when it is emptied. |
Let me see if I understand. The steps to test this are:
Is that right? |
Not exactly, on the 4) step i submit m'y form, i get a response of the |
After you "get a response of the updated user, in which userpass is empty", what do you do with it? Call |
My form has my user model as initialvalues on load, so i bet on the user |
And you can't replicate the same behavior on any other form field that is not |
No it's a type="text" actually. |
Per the comment I linked to in my previous comment, I think you might have to dispatch |
So I've dispached initializeForm as said:
Not quite fond of it, but it works as expected :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
hey,
I'm trying to save a password in a field and empty it in my reducer on success update.
When other fields are dirty the password is correctly emptied, the behavior is the one expected, but if only the password field is dirty (it is empty on form initialize) I believe redux-form (or is it react?) thinks there is nothing to update (as the form is identical, empty password at first, empty password then) so my password field stays populated, and dirty. It there a way to force re-render?
thanks!
The text was updated successfully, but these errors were encountered: