Skip to content

fix(iOS): Opening alert/confirm on top most of modal dialogs - #7982

Merged
manoldonev merged 7 commits into
NativeScript:masterfrom
slolam:patch-2
Nov 19, 2019
Merged

manoldonev merged 7 commits into
NativeScript:masterfrom
slolam:patch-2

Conversation

@slolam

@slolam slolam commented Oct 19, 2019

Copy link
Copy Markdown
Contributor

This is fix for the issue #6939 where alert() and confirm() does not work in a modal dialog if it's opened on top of an existing modal dialog.

PR Checklist

What is the current behavior?

If you have modal dialog on top of another modal dialog (which is support from {N} 4.0), you cannot show an alert/confirm in iOS. It simply does not show the alert, it silently gives a warning. This is an iOS only behavior and is reported in the #6939.

Here is the link to the Playground https://play.nativescript.org/?template=play-ng&id=GeR8Q4&v=2
The alert box is shown on the first dialog but not on the stacked ones on top of it.

What is the new behavior?

It uses the top most UIViewController to present the alert/confirm

Fixes #6939.
This fix does not contain any breaking changes

This is fix for the issue NativeScript#6939 where alert() and confirm() does not work in a modal dialog if it's opened on top of an existing modal dialog.
@cla-bot cla-bot Bot added the cla: yes label Oct 19, 2019
@ADjenkov
ADjenkov self-requested a review October 23, 2019 12:39
@slolam

slolam commented Oct 28, 2019

Copy link
Copy Markdown
Contributor Author

@ADjenkov, do you want me to update the branch? It looks the master is out of date and will it require re-approval?

@ADjenkov

Copy link
Copy Markdown
Contributor

@slolam no need of re-approval. I'll update it now

@slolam

slolam commented Nov 15, 2019

Copy link
Copy Markdown
Contributor Author

@ADjenkov, typically how many days does it take to merge and release after approval? I have been manually updating the framework file for this fix before I build the app for release.

@ADjenkov

Copy link
Copy Markdown
Contributor

test

@slolam

slolam commented Nov 18, 2019

Copy link
Copy Markdown
Contributor Author

test

The failed test output has java.lang.* I am wondering how my iOS related changes creeping into the Android world.

Is there a way I could get access to the output/log of the test?

@ADjenkov

Copy link
Copy Markdown
Contributor

@slolam sorry for the late response. Don't mind the test results for now, since we are facing some issues with testing on our side. Will try to merge it today, thanks for the PR!

@NativeScript NativeScript deleted a comment from etabakov Nov 19, 2019
@NativeScript NativeScript deleted a comment from cla-bot Bot Nov 19, 2019
@manoldonev
manoldonev merged commit 60ac4e7 into NativeScript:master Nov 19, 2019
@etabakov

Copy link
Copy Markdown
Contributor

Hey, thanks for your contribution! We have a special program for our first-time contributors and you are eligible to participate in it. If you haven't applied already, all you need to do to claim your prize is to fill our Application Form.

Regards from the whole team 🥇

@slolam
slolam deleted the patch-2 branch December 5, 2019 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

5 participants