Skip to content

Commit a590bf2

Browse files
committed
fix(bottomsheet): prevent unload while presenting over
1 parent 0a682b1 commit a590bf2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/bottomsheet/bottomsheet.ios.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,13 @@ class UILayoutViewController extends UIViewController {
290290

291291
viewDidDisappear(animated: boolean): void {
292292
super.viewDidDisappear(animated);
293-
const owner = this.owner.get();
294-
if (owner && !owner.parent) {
295-
owner.callUnloaded();
296-
}
293+
// let s not call callUnloaded here in case
294+
// another modal / sheet is shown on top
295+
// will be called on dismiss
296+
// const owner = this.owner.get();
297+
// if (owner && !owner.parent) {
298+
// owner.callUnloaded();
299+
// }
297300
}
298301

299302
// Mind implementation for other controllers

0 commit comments

Comments
 (0)