8000 fix(view): modal stack tracking (#10557) · NativeScript/NativeScript@84e1a67 · GitHub
[go: up one dir, main page]

Skip to content

Commit 84e1a67

Browse files
authored
fix(view): modal stack tracking (#10557)
1 parent 9e472d7 commit 84e1a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/ui/core/view/view-common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export abstract class ViewCommon extends ViewBase implements ViewDefinition {
419419
this._closeModalCallback = (...originalArgs) => {
420420
const cleanupModalViews = () => {
421421
const modalIndex = _rootModalViews.indexOf(this);
422-
_rootModalViews.splice(modalIndex);
422+
_rootModalViews.splice(modalIndex, 1);
423423
this._modalParent = null;
424424
this._modalContext = null;
425425
this._closeModalCallback = null;

0 commit comments

Comments
 (0)
0