Skip to content
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

fix dialog back button for android #3428

Merged
merged 3 commits into from
Apr 5, 2024
Merged

Conversation

haileyok
Copy link
Contributor

@haileyok haileyok commented Apr 5, 2024

This is a follow-up to #3330 and #3343

I am implementing the change in #3330 here for all dialogs now. I am also adding a callback to close() on web, so that the functionality remains the same across all platforms. This prevents issues where the dialog gets unmounted before the removal of the dialog from the dialog state is finished.

Test Plan

On Android

  • Hide post through the post menu
  • Open another post
  • Try to use the back button

On Web

  • Open the post composer on web
  • Insert some text
  • Press cancel, dismiss the composer

@haileyok haileyok requested a review from estrattonbailey April 5, 2024 16:55
Copy link

github-actions bot commented Apr 5, 2024

Old size New size Diff
6.36 MB 6.36 MB 144 B (0.00%)

@haileyok haileyok force-pushed the hailey/fix-android-back-dialog branch from e438770 to 187d7a8 Compare April 5, 2024 17:43
src/components/Dialog/index.web.tsx Outdated Show resolved Hide resolved
@haileyok haileyok merged commit cd29dba into main Apr 5, 2024
6 checks passed
@haileyok haileyok deleted the hailey/fix-android-back-dialog branch April 5, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants