File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/core/ui/core/view Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line numberDiff line change @@ -1002,7 +1002,11 @@ export class View extends ViewCommon implements ViewDefinition {
1002
1002
const popoverPresentationController = controller . popoverPresentationController ;
1003
1003
this . _popoverPresentationDelegate = IOSHelper . UIPopoverPresentationControllerDelegateImp . initWithOwnerAndCallback ( new WeakRef ( this ) , this . _closeModalCallback ) ;
1004
1004
popoverPresentationController . delegate = < UIPopoverPresentationControllerDelegate > this . _popoverPresentationDelegate ;
1005
- const view = parent . nativeViewProtected ;
1005
+ let view : UIView ;
1006
+ do {
1007
+ view = parent . nativeViewProtected ;
1008
+ parent = parent . parent as View ;
1009
+ } while ( parent && ! view ) ;
1006
1010
// Note: sourceView and sourceRect are needed to specify the anchor location for the popover.
1007
1011
// Note: sourceView should be the button triggering the modal. If it the Page the popover might appear "behind" the page content
1008
1012
popoverPresentationController . sourceView = view ;
You can’t perform that action at this time.
0 commit comments