diff --git a/src/popover/popover.directive.ts b/src/popover/popover.directive.ts index d3b9612fe7..52e3c9c5dc 100644 --- a/src/popover/popover.directive.ts +++ b/src/popover/popover.directive.ts @@ -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; + } + }); + } /**