Skip to content

Commit b5e9867

Browse files
fix(MdePopoverTrigger): change _elementRef to public
1 parent dc0df23 commit b5e9867

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/popover/popover-trigger.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export class MdePopoverTrigger implements AfterViewInit, OnDestroy {
113113
@Output() onPopoverClose = new EventEmitter<void>();
114114

115115

116-
constructor(private _overlay: Overlay, private _element: ElementRef,
116+
constructor(private _overlay: Overlay, public _elementRef: ElementRef,
117117
private _viewContainerRef: ViewContainerRef,
118118
@Optional() private _dir: Directionality) { }
119119

@@ -262,7 +262,7 @@ export class MdePopoverTrigger implements AfterViewInit, OnDestroy {
262262

263263
/** Focuses the popover trigger. */
264264
focus() {
265-
this._element.nativeElement.focus();
265+
this._elementRef.nativeElement.focus();
266266
}
267267

268268
/** The text direction of the containing app. */
@@ -419,7 +419,7 @@ export class MdePopoverTrigger implements AfterViewInit, OnDestroy {
419419
* Useful for sticking popover to parent element and offsetting arrow to trigger element.
420420
* If undefined defaults to the trigger element reference.
421421
*/
422-
let element = this._element;
422+
let element = this._elementRef;
423423
if (typeof this.targetElement !== 'undefined') {
424424
this.popover.containerPositioning = true;
425425
element = this.targetElement._elementRef;

0 commit comments

Comments
 (0)