File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- import { Directive , Input } from '@angular/core' ;
1
+ import { Directive , ElementRef , Input } from '@angular/core' ;
2
2
3
3
import { AppRoot } from '../app/app' ;
4
4
import { isTrueProperty } from '../../util/util' ;
@@ -39,7 +39,7 @@ export class Backdrop {
39
39
private pushed : boolean = false ;
40
40
@Input ( ) disableScroll = true ;
41
41
42
- constructor ( private _appRoot : AppRoot ) { }
42
+ constructor ( private _appRoot : AppRoot , private _elementRef : ElementRef ) { }
43
43
44
44
ngOnInit ( ) {
45
45
if ( isTrueProperty ( this . disableScroll ) ) {
@@ -55,4 +55,8 @@ export class Backdrop {
55
55
}
56
56
}
57
57
58
+ getNativeElement ( ) : HTMLElement {
59
+ return this . _elementRef . nativeElement ;
60
+ }
61
+
58
62
}
Original file line number Diff line number Diff line change @@ -614,7 +614,7 @@ export class Menu extends Ion {
614
614
* @private
615
615
*/
616
616
getBackdropElement ( ) : HTMLElement {
617
- return this . backdrop . elementRef . nativeElement ;
617
+ return this . backdrop . getNativeElement ( ) ;
618
618
}
619
619
620
620
/**
You can’t perform that action at this time.
0 commit comments