Skip to content

Commit

Permalink
feat(popover): don't show popover if content is undefined, #1504 (#2815)
Browse files Browse the repository at this point in the history
* feat(popover): don't show popover if content is undefined, #1504

* Update popover.directive.ts
  • Loading branch information
LimarenkoDenis authored and valorkin committed Oct 20, 2017
1 parent e98109c commit 64d13e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/popover/popover.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class PopoverDirective implements OnInit, OnDestroy {
* the popover.
*/
show(): void {
if (this._popover.isShown) {
if (this._popover.isShown || !this.popover) {
return;
}

Expand Down

0 comments on commit 64d13e7

Please sign in to comment.