Skip to content

Commit

Permalink
Merge pull request #7885 from ajbozarth/close-dialog
Browse files Browse the repository at this point in the history
Close Dialog by clicking ouside of it
  • Loading branch information
tgeorgeux committed Feb 15, 2020
2 parents 7a97756 + 48860c2 commit 4538bf5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/apputils/src/dialog.ts
Expand Up @@ -271,6 +271,7 @@ export class Dialog<T> extends Widget {
if (!content.contains(event.target as HTMLElement)) {
event.stopPropagation();
event.preventDefault();
this.reject();
return;
}
for (let buttonNode of this._buttonNodes) {
Expand Down

0 comments on commit 4538bf5

Please sign in to comment.