FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(ios-dialogs): unable to show dialog from modal view without a page by ADjenkov · Pull Request #5881 · NativeScript/NativeScript · GitHub

fix(ios-dialogs): unable to show dialog from modal view without a page - #5881

Merged
ADjenkov merged 2 commits into
masterfrom
djenkov/modal-dialogs
May 29, 2018
Merged

ADjenkov merged 2 commits into
masterfrom
djenkov/modal-dialogs

Conversation

Copy link
Copy Markdown
Contributor

Fix #5879
The original problem occurred in an Angular app (Plugins team teamplate), that displays some dialogs inside modal view, bacause we are no longer wrapping modal view inside a Page in nativescript-angular@next.
This could also happen in a non Angular application (modal view without <Page>)

The solution is to search up in the hierarchy for a parent with UIViewController on which we should present the dialog.

Added test in modal-navigation app that opens dialog from modal view (with and without wrapping modal view content in Page)

ADjenkov added the bug label May 29, 2018
ADjenkov self-assigned this May 29, 2018
ghost added the in progress label May 29, 2018
view = currentPage.modal;

if (view.ios instanceof UIViewController) {
viewController = currentPage.modal.ios;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Shouldn't this be viewController = view.ios?

ADjenkov force-pushed the djenkov/modal-dialogs branch from 78201dd to e6245b1 Compare May 29, 2018 13:49
ADjenkov merged commit e59d156 into master May 29, 2018
ghost removed bug in progress labels May 29, 2018
SvetoslavTsenov pushed a commit that referenced this pull request May 30, 2018
#5881)

* fix(ios-dialogs): unable to show dialog from modal view

* tests(modal-navigation): add test that opens dialog inside modal view

esyx0 commented Jun 8, 2018
edited
Loading

Copy link
Copy Markdown

Can you please describe how to fix it? I have a <Page> in my modal and dialogs.action() for example doesn't work on iOS.

lock Bot commented Aug 26, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock Bot locked and limited conversation to collaborators Aug 26, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS] Unable to show dialog from modal view without a page

4 participants


Back | FazBrowse Home | New Git URL