Skip to content

Commit

Permalink
fix(dialog): remove unnecessary event dispatching
Browse files Browse the repository at this point in the history
  • Loading branch information
jgroth authored and adrianschmidt committed Oct 16, 2018
1 parent e1db7f1 commit 225d985
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/dialog/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export class Dialog {
}

this.mdcDialog.listen('MDCDialog:closed', () => {
this.close.emit();
if (this.open) {
this.close.emit();
}

this.open = false;
});
}
Expand Down

0 comments on commit 225d985

Please sign in to comment.