Skip to content

Commit

Permalink
Merge pull request #6063 from WiXSL/fix-deletewcc-event-propagation
Browse files Browse the repository at this point in the history
Fix stop propagation of click event on DeleteWithConfirmButton component
  • Loading branch information
djhi authored Mar 19, 2021
2 parents 622fcc0 + 2a65c96 commit 9d9a115
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ const useDeleteWithConfirmController = (

const handleDelete = useCallback(
event => {
event.stopPropagation();
deleteOne({
payload: { id: record.id, previousData: record },
});
Expand Down

0 comments on commit 9d9a115

Please sign in to comment.