When using RichTextInput inside ArrayInput, 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
- Open post edit view.
- Click Remove button on the last backlink item
Related code:
<ArrayInput source="backlinks">
<SimpleFormIterator>
<RichTextInput source="url" />
</SimpleFormIterator>
</ArrayInput>
Other information:

Environment
- React-admin version: 2.9.0
- Last version that did not exhibit the issue (if applicable):
- React version:
- Browser:
- Stack trace (in case of a JS error):
When using
RichTextInputinsideArrayInput, 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