mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
fix(core): inheritable property changes backstack propagation (#10438)
[skip ci]
This commit is contained in:

committed by
GitHub

parent
23127254ec
commit
48b1856d6c
@ -133,15 +133,19 @@ class UIViewControllerImpl extends UIViewController {
|
||||
if (frame) {
|
||||
frame._resolvedPage = owner;
|
||||
|
||||
if (!owner.parent) {
|
||||
if (!frame._styleScope) {
|
||||
// Make sure page will have styleScope even if frame don't.
|
||||
owner._updateStyleScope();
|
||||
}
|
||||
if (owner.parent === frame) {
|
||||
frame._inheritStyles(owner);
|
||||
} else {
|
||||
if (!owner.parent) {
|
||||
if (!frame._styleScope) {
|
||||
// Make sure page will have styleScope even if frame don't.
|
||||
owner._updateStyleScope();
|
||||
}
|
||||
|
||||
frame._addView(owner);
|
||||
} else if (owner.parent !== frame) {
|
||||
throw new Error('Page is already shown on another frame.');
|
||||
frame._addView(owner);
|
||||
} else {
|
||||
throw new Error('Page is already shown on another frame.');
|
||||
}
|
||||
}
|
||||
|
||||
frame._updateActionBar(owner);
|
||||
|
Reference in New Issue
Block a user