Skip to content

Commit

Permalink
Popover focus on Mac OS fix reident
Browse files Browse the repository at this point in the history
  • Loading branch information
gilsdav committed Jun 3, 2017
1 parent 2c2ff3a commit b06059e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/popover/popover.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ export class PopoverDirective implements OnInit, OnDestroy {

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

}
Expand Down

0 comments on commit b06059e

Please sign in to comment.