File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 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 {
361361 return ;
362362 }
363363 this . _setupAsRootView ( { } ) ;
364- this . parent = Application . getRootView ( ) ;
365364
366365 this . _commonShowNativeBottomSheet ( parentWithController , options ) ;
367366 let controller : IMDLayoutViewController = this . viewController ;
@@ -385,6 +384,8 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
385384
386385 this . viewController = controller ; // store the viewController so that safeArea overflow is applied correctly
387386 }
387+ // calling this before the controller set makes it fail. Would have to investigate this
388+ this . parent = Application . getRootView ( ) ;
388389
389390 this . _raiseShowingBottomSheetEvent ( ) ;
390391 const bottomSheet = ( this . bottomSheetController = MDCBottomSheetController . alloc ( ) . initWithContentViewController ( controller ) ) ;
You can’t perform that action at this time.
0 commit comments