mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(view): modal stack tracking (#10557)
This commit is contained in:
@@ -419,7 +419,7 @@ export abstract class ViewCommon extends ViewBase implements ViewDefinition {
|
||||
this._closeModalCallback = (...originalArgs) => {
|
||||
const cleanupModalViews = () => {
|
||||
const modalIndex = _rootModalViews.indexOf(this);
|
||||
_rootModalViews.splice(modalIndex);
|
||||
_rootModalViews.splice(modalIndex, 1);
|
||||
this._modalParent = null;
|
||||
this._modalContext = null;
|
||||
this._closeModalCallback = null;
|
||||
|
||||
Reference in New Issue
Block a user