Skip to content

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

Open
edusperoni wants to merge 1 commit into
NativeScript:mainfrom
edusperoni:dialog-fragment-fix
Open

edusperoni wants to merge 1 commit into
NativeScript:mainfrom
edusperoni:dialog-fragment-fix

Conversation

@edusperoni

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

This branch has not been deployed

No deployments
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