Skip to content

Commit 27878f5

Browse files
author
farfromrefug
committed
fix(bottomsheet): fix broken modal stack when opening multiple modals
1 parent 05de342 commit 27878f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bottomsheet/bottomsheet-common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export abstract class ViewWithBottomSheetBase extends View {
8181
}
8282
const _rootModalViews = this._getRootModalViews();
8383
const modalIndex = _rootModalViews.indexOf(this);
84-
_rootModalViews.splice(modalIndex);
84+
_rootModalViews.splice(modalIndex, 1);
8585

8686
this._isAddedToNativeVisualTree = false;
8787
this._tearDownUI(true);

0 commit comments

Comments
 (0)