mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(RootLayout): resilience around shadeCover options
This commit is contained in:
@@ -114,7 +114,7 @@ export class RootLayoutBase extends GridLayout {
|
|||||||
|
|
||||||
if (this.shadeCover) {
|
if (this.shadeCover) {
|
||||||
// update shade cover with the topmost popupView options (if not specifically told to ignore)
|
// update shade cover with the topmost popupView options (if not specifically told to ignore)
|
||||||
if (!poppedView?.options?.shadeCover.ignoreShadeRestore) {
|
if (!poppedView?.options?.shadeCover?.ignoreShadeRestore) {
|
||||||
const shadeCoverOptions = this.popupViews[this.popupViews.length - 1]?.options?.shadeCover;
|
const shadeCoverOptions = this.popupViews[this.popupViews.length - 1]?.options?.shadeCover;
|
||||||
if (shadeCoverOptions) {
|
if (shadeCoverOptions) {
|
||||||
this.updateShadeCover(this.shadeCover, shadeCoverOptions);
|
this.updateShadeCover(this.shadeCover, shadeCoverOptions);
|
||||||
@@ -122,7 +122,7 @@ export class RootLayoutBase extends GridLayout {
|
|||||||
}
|
}
|
||||||
// remove shade cover animation if this is the last opened popup view
|
// remove shade cover animation if this is the last opened popup view
|
||||||
if (this.popupViews.length === 0) {
|
if (this.popupViews.length === 0) {
|
||||||
this.closeShadeCover(poppedView.options.shadeCover);
|
this.closeShadeCover(poppedView?.options?.shadeCover);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user