-
-
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 inside ArrayInput deletion issue #3220
Comments
So, what's going on: First of all,
Second of all, after removing redux-form field, react-admin/packages/ra-input-rich-text/src/index.js Lines 65 to 69 in bcea168
After that, react-admin/packages/ra-input-rich-text/src/index.js Lines 82 to 86 in bcea168
Then new array item appears with empty Proposed solution#3221 fixes wrong debouncing handling. Setting My suggestion is first add That being said, #3221 is crucial for fixing this issue. |
I fixed the import error in your codesandbox : https://codesandbox.io/s/rlmq71qyj4 |
@Kmaschta thanks! |
Cannot reproduce anymore on master (v3.16), it was probably solved by a previous PR. |
When using
RichTextInput
insideArrayInput
, deletion of single element doesn't work as expected.What you were expecting:
Clicking Remove button removes element from array
What happened instead:
Clicking Remove button removes element from array and adds new empty item instead
Steps to reproduce:
Minimal example: https://codesandbox.io/s/zr7r9pn52p
Related code:
Other information:
Environment
The text was updated successfully, but these errors were encountered: