Skip to content

Commit

Permalink
fix(popover): fix safari dismiss popover issue
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloff200 committed Aug 17, 2020
1 parent 94f5975 commit f57fb41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/popover/popover.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ export class PopoverDirective implements OnInit, OnDestroy {
) {
this._popover = cis
.createLoader<PopoverContainerComponent>(
this._elementRef,
_elementRef,
_viewContainerRef,
this._renderer
_renderer
)
.provide({provide: PopoverConfig, useValue: _config});

Expand All @@ -121,9 +121,9 @@ export class PopoverDirective implements OnInit, OnDestroy {

// fix: no focus on button on Mac OS #1795
if (typeof window !== 'undefined') {
this._elementRef.nativeElement.addEventListener('click', function () {
_elementRef.nativeElement.addEventListener('click', function () {
try {
this._elementRef.nativeElement.focus();
_elementRef.nativeElement.focus();
} catch (err) {
return;
}
Expand Down

0 comments on commit f57fb41

Please sign in to comment.