Skip to content

Commit 58c9d42

Browse files
authored
fix-next(ios): handle nesting in proxyViewContainer ng (NativeScript#6475)
1 parent 95c4ec5 commit 58c9d42

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tns-core-modules/ui/core/view/view.ios.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,9 +892,10 @@ export namespace ios {
892892
let parent = tabView && tabView.parent;
893893

894894
// Handle Angular scenario where TabView is in a ProxyViewContainer
895+
// It is possible to wrap components in ProxyViewContainers indefinitely
895896
// Not using instanceof ProxyViewContainer to avoid circular dependency
896897
// TODO: Try moving UILayoutViewController out of view module
897-
if (parent && !parent.nativeViewProtected) {
898+
while (parent && !parent.nativeViewProtected) {
898899
parent = parent.parent;
899900
}
900901

tns-core-modules/ui/page/page.ios.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,10 @@ class UIViewControllerImpl extends UIViewController {
227227
let frameParent = frame && frame.parent;
228228

229229
// Handle Angular scenario where TabView is in a ProxyViewContainer
230+
// It is possible to wrap components in ProxyViewContainers indefinitely
230231
// Not using instanceof ProxyViewContainer to avoid circular dependency
231232
// TODO: Try moving UIViewControllerImpl out of page module
232-
if (frameParent && !frameParent.nativeViewProtected) {
233+
while (frameParent && !frameParent.nativeViewProtected) {
233234
frameParent = frameParent.parent;
234235
}
235236

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy