Skip to content

Commit

Permalink
fix(core): Stop propagation of task monitor close event (#8085)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
alanmquach and mergify[bot] committed Mar 24, 2020
1 parent 185865b commit b6fe67b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/scripts/modules/core/src/task/monitor/TaskMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ export class TaskMonitor {
}
}

public closeModal = (): void => {
public closeModal = (evt?: React.MouseEvent<any>): void => {
try {
evt && evt.stopPropagation();
this.modalInstance.dismiss();
} catch (ignored) {
// modal was already closed
Expand Down

0 comments on commit b6fe67b

Please sign in to comment.