Skip to content

Commit

Permalink
Merge pull request #2989 from marmelab/fix-delete-with-confirm
Browse files Browse the repository at this point in the history
Fix DeleteWithConfirmButton
  • Loading branch information
Gildas Garcia authored Mar 13, 2019
2 parents 3ad57d8 + fca9a5b commit 577c8b8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ class DeleteWithConfirmButton extends Component {
this.setState({ isOpen: false });
};

handleDelete = event => {
event.stopPropagation();
handleDelete = () => {
const { crudDelete, resource, record, basePath, redirect } = this.props;
crudDelete(resource, record.id, record, basePath, redirect);
};
Expand Down

0 comments on commit 577c8b8

Please sign in to comment.