Skip to content

Alert dialog cannot be shown while modal dialog is being shown on iOS #6939

Closed

Description

@erkanarslan

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.1.1
  • Cross-platform modules: 5.0.5
  • Android Runtime: 5.1.0
  • iOS Runtime: 5.1.1
  • Plugin(s): Unrelated

Describe the bug
Alert dialog cannot be shown while modal dialog is being shown on iOS.

To Reproduce
Open a modal. After modal is open, show an alert dialog inside that modal's component. It doesn't show an alert dialog even though it works in Android.

Expected behavior
It should show an alert box.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

  1. slolam commented on Oct 9, 2019

    @slolam
    Contributor

    @NickIliev,

    I too have the same issue and I have a little more information. The alert works fine if it's the first modal dialog displayed on the page. If I open a subsequent modal dialog on top a modal dialog, it fails to open the alert() or confirm() on iOS.

    Here is the playground link https://play.nativescript.org/?template=play-ng&id=GeR8Q4&v=2

  2. erkanarslan commented on Nov 7, 2019

    @erkanarslan
    Author

    I still have this problem. I cannot show an alert dialog on top of a modal view on iOS and it is the only modal in the screen at the moment.

    tns version: 6.1.2
    tns-core-modules: 6.0.2
    tns-ios: 6.1.1

  3. slolam commented on Nov 7, 2019

    @slolam
    Contributor

    @erkanarslan, it is fixed and the PR has been approved. Waiting to be merged and released.

  4. erkanarslan commented on Nov 7, 2019

    @erkanarslan
    Author

    But it seems that this fixes the problem if a modal is opened on top of an another modal. I only open a single modal and cannot show an alert on that modal. I think this won't fix my problem.

    Thanks for your PR by the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions