Skip to content

fix(android): tabs inside modal throw error on close #8879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edusperoni
Copy link
Contributor

PR Checklist

What is the current behavior?

When closing a modal with back button (or tapping outside), things that depend on Fragments (like Tabs) will throw an error because the fragment was already disposed.

What is the new behavior?

Unloaded is called first, giving a chance for the components to clean up before modal close.

Might be worth it to wait for e2e testing to work again before merge.

Fixes NativeScript/nativescript-angular#2259.

@cla-bot cla-bot bot added the cla: yes label Sep 22, 2020
@edusperoni
Copy link
Contributor Author

I think we should wait to see if #8793 fixes it (or breaks this PR)

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.

[Angular 10] Dismissing a dialog with tabs inside it throws exception
2 participants