-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
RichTextInput doesn't update on changes caused by redux-form actions #2464
Comments
@fzaninotto I believe that this closed (not merged) PR solves this problem, can you please re-consider this? Thank you! |
The patch in #2581 didn't seem to solve the problem. If you can provide a unit test or a CodeSandbox proving that it works, I'm willing to reconsider merging it. |
You can check the behavior while creating a new post in this CodeSandbox. The problem appears on the RichTextInput for engish. We have 2 of them, one in the typical create page and another one (with exaclty the same source) inside the dialog that appears when you click the translations button. The same example with TextInput instead of RichTextInput works seamless and the 2 inputs are synchronized. |
What you were expecting:
In one view with two RichTextInput components with the same source, changing the first one should change the value of the other and vise versa.
However it is working as expected with two TextInput components with the same source, and they are in sync.
What happened instead:
Both RichTextInput component populate data on the same record in redux, but each component renders only what is typed within in it and not the value of the redux form.
Steps to reproduce:
Simply put two RichTextInput components with the same source in one SimpleForm.
Other information:
Environment
The text was updated successfully, but these errors were encountered: