Skip to content

Commit b3b8940

Browse files
committed
fix(bottomsheet): ios regression fix
1 parent d60fc8a commit b3b8940

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bottomsheet/bottomsheet.ios.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)