File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,6 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
361
361
return ;
362
362
}
363
363
this . _setupAsRootView ( { } ) ;
364
- this . parent = Application . getRootView ( ) ;
365
364
366
365
this . _commonShowNativeBottomSheet ( parentWithController , options ) ;
367
366
let controller : IMDLayoutViewController = this . viewController ;
@@ -385,6 +384,8 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
385
384
386
385
this . viewController = controller ; // store the viewController so that safeArea overflow is applied correctly
387
386
}
387
+ // calling this before the controller set makes it fail. Would have to investigate this
388
+ this . parent = Application . getRootView ( ) ;
388
389
389
390
this . _raiseShowingBottomSheetEvent ( ) ;
390
391
const bottomSheet = ( this . bottomSheetController = MDCBottomSheetController . alloc ( ) . initWithContentViewController ( controller ) ) ;
You can’t perform that action at this time.
0 commit comments