Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix(template): add condition for template handleClick
Browse files Browse the repository at this point in the history
  • Loading branch information
ksendart committed Aug 11, 2017
1 parent fbc699e commit ba18f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/template/template/template.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class TemplateComponent implements OnChanges {

public handleClick(e: MouseEvent): void {
e.stopPropagation();
if (!this.mdMenuTrigger.menuOpen) {
if (this.mdMenuTrigger && !this.mdMenuTrigger.menuOpen) {
this.onClick.emit(this.item);
}
}
Expand Down

0 comments on commit ba18f2c

Please sign in to comment.