Skip to content

Commit

Permalink
Merge pull request #18 from valor-software/development
Browse files Browse the repository at this point in the history
fix(popover): no focus on button on Mac OS valor-software#1795 (valor-software#2031)
  • Loading branch information
GulajavaMinistudio authored Jul 15, 2017
2 parents a970558 + d039a8d commit 7bdb273
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/popover/popover.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ export class PopoverDirective implements OnInit, OnDestroy {
Object.assign(this, _config);
this.onShown = this._popover.onShown;
this.onHidden = this._popover.onHidden;

// fix: no focus on button on Mac OS #1795
_elementRef.nativeElement.addEventListener('click', function() {
try {
_elementRef.nativeElement.focus();
} catch(err) {
return;
}
});

}

/**
Expand Down

0 comments on commit 7bdb273

Please sign in to comment.