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

[menu-bar] Fix undismissable Alerts #112

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

gabrieldonadel
Copy link
Member

Why

Sometimes users may get stuck with an Alert that can't be dismissed because there aren't any active windows available

e.g.
image

How

Add a wrapper around react-native's Alert to override the alert function and set modal true by default. (using modal does not require an active window)

Test Plan

Run menu-bar locally, trigger multiple errors and ensure it's possible to close all alerts

Copy link

@kadikraman kadikraman left a comment

Choose a reason for hiding this comment

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

Nice, I would never have guessed the underlying cause!

@gabrieldonadel gabrieldonadel merged commit b1e2e87 into main Nov 30, 2023
1 check passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/fix-undismissable-alerts branch November 30, 2023 20:25
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