File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
nativescript-angular/directives Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { AppHostView } from "../app-host-view";
1717import { DetachedLoader } from "../common/detached-loader" ;
1818import { PageFactory , PAGE_FACTORY } from "../platform-providers" ;
1919import { once } from "../common/utils" ;
20- import { Frame } from "tns-core-modules/ui/frame /frame" ;
20+ import { topmost , Frame } from "tns-core-modules/ui/frame" ;
2121
2222export interface ModalDialogOptions {
2323 context ?: any ;
@@ -84,7 +84,7 @@ export class ModalDialogService {
8484
8585 let frame = parentView ;
8686 if ( ! ( parentView instanceof Frame ) ) {
87- frame = parentView . page && parentView . page . frame ;
87+ frame = ( parentView . page && parentView . page . frame ) || topmost ( ) ;
8888 }
8989
9090 if ( frame ) {
You can’t perform that action at this time.
0 commit comments