Skip to content

[BottomSheet] closeCallback does nothing when called after a second modal was shown #250

@toverux

Description

@toverux

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 injected BottomSheetParams) from modal B [OK]
  • Call closeCallback (from injected BottomSheetParams) from modal A [DOES NOTHING]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions