Skip to content

Commit

Permalink
Prevent event propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Mar 21, 2020
1 parent fcb8f37 commit d643245
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/ResetRevertDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ export class ResetRevertDialog extends React.Component<
*
* @param event - event object
*/
private _onClose = (): void => {
private _onClose = (event: any): void => {
event.stopPropagation();
this.setState({
summary: '',
description: '',
Expand Down
2 changes: 0 additions & 2 deletions src/components/SinglePastCommitInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,6 @@ export class SinglePastCommitInfo extends React.Component<

/**
* Callback invoked upon closing a dialog to reset or revert changes.
*
* @param event - event object
*/
private _onResetRevertDialogClose = (): void => {
this.setState({
Expand Down

0 comments on commit d643245

Please sign in to comment.