Skip to content

Commit

Permalink
Merge pull request #3360 from marmelab/prevent-rowclick-on-confirm
Browse files Browse the repository at this point in the history
[RFR] Prevent Event propagation after Delete Confirm modal close
  • Loading branch information
fzaninotto authored Jun 25, 2019
2 parents 847e779 + 08d180f commit b8575cd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ class DeleteWithConfirmButton extends Component {
state = { isOpen: false };

handleClick = e => {
this.setState({ isOpen: true });
e.stopPropagation();
this.setState({ isOpen: true });
};

handleDialogClose = () => {
handleDialogClose = e => {
e.stopPropagation();
this.setState({ isOpen: false });
};

Expand Down

0 comments on commit b8575cd

Please sign in to comment.