-
-
Couldn't load subscription status.
- Fork 78
Description
Hi,
When I'm opening a bottom sheet on top of another bottom sheet, the closeCallback from the first bottom sheet does nothing when called.
I am able to show multiple modals at the same time, but I'm only able to close the latest one that was opened.
The system back button works, however, I'm able to close the first modal with it.
Actually, I did some more tests and calling the close callback from the first sheet while the second sheet is still opened, closes the second sheet instead of the first one. I guess they share an underlying controller instance. I hope this could be easily improved so a modal always a close callback that's specific to it.
Which platform(s) does your issue occur on?
- iOS
- Android
Please, provide the following version numbers that your issue occurs with:
- CLI: 7.2.0
- Cross-platform modules: 7.2.1
- Runtime(s): Android 7.0.1, iOS 7.2.0
Please, tell us how to recreate the issue in as much detail as possible.
- Open modal A [OK]
- Open modal B from inside A, without closing A [OK]
- Call
closeCallback(from injectedBottomSheetParams) from modal B [OK] - Call
closeCallback(from injectedBottomSheetParams) from modal A [DOES NOTHING]