fix(core): inheritable property changes backstack propagation (#10438)

[skip ci]
This commit is contained in:
Dimitris-Rafail Katsampas
2023-11-25 18:31:50 +02:00
committed by GitHub
parent 23127254ec
commit 48b1856d6c
4 changed files with 31 additions and 16 deletions

View File

@ -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);