Skip to content

Commit aa6d9c2

Browse files
committed
fix: bottomSheet viewController undefined on tap in background
1 parent 9063f9e commit aa6d9c2

File tree

3 files changed

+113
-250
lines changed

3 files changed

+113
-250
lines changed

demo-vue3

src/bottomsheet/bottomsheet.ios.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,11 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
454454
if (this.isLoaded) {
455455
this.callUnloaded();
456456
}
457+
458+
this._onDismissBottomSheetCallback && this._onDismissBottomSheetCallback();
457459
// it is very important to clear the viewController as N does not do it
458460
// and the destroy of the view from svelte could trigger a layout pass on the viewController
459461
this.viewController = null;
460-
this._onDismissBottomSheetCallback && this._onDismissBottomSheetCallback();
461462
}
462463
}
463464

0 commit comments

Comments
 (0)