react-admin

Disable undo function in react-admin for List view


It is possible to set the property undoable={false} for the Edit and Create component. This successfully disables the undo feature.

It seems as if this property is not applicable to the List view. Is that correct?

Use Case:

The user is in the List view. She selects an item and chooses to delete it. The delete shall not be undoable.


Solution

  • For List, the undoable property must be specified in DeleteButton:

    <List {...props} >
    <Datagrid>
      ...
      <DeleteButton undoable={true} />
    </Datagrid>