Skip to content

RichTextInput inside ArrayInput deletion issue #3220

Description

@cherniavskii

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

  1. Open post edit view.
  2. Click Remove button on the last backlink item

Related code:

<ArrayInput source="backlinks">
  <SimpleFormIterator>
    <RichTextInput source="url" />
  </SimpleFormIterator>
</ArrayInput>

Other information:

mpjnt-ucdx1

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):

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions