-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2021-10-30] Esc key doesn't dismiss any of the ConfirmModal
around the app
#5158
Comments
Triggered auto assignment to @TomatoToaster ( |
Sorry for pitching in but IMO In this case Or we can change this behavior. 😸 |
Hmm I'm personally fine with it escaping the modal with escape key. Let's ping the room and see if we can get a larger consensus on this before implementing it. |
Ok I think the accessibility case (mentioned in slack) is a good enough case. I'm going to make this external officially. |
Triggered auto assignment to @trjExpensify ( |
Triggered auto assignment to @Luke9389 ( |
Proposal
|
@parasharrajat you wanna pass an additional prop to ConfirmModal? But that'd also add an extra button which isn't needed. Also, we'll have to define and pass a callback everytime we use Do you think we can do better? So that this behaviour is built-in for the component? Maybe something with the help of navigation. |
Ahh, I didn't see it through that it will render the button. Absolutely, we can inbuild it in the ConfirmModal if we just want to hide every ConfirmModal. I will update the Proposal to add that as well. |
I just checked |
Ohh okay, sounds good! |
If I do this:
There is an issue with this @rushatgabhane. As ConfirmModal is controlled by the isVisible state of the parent component, we have to set it to false whenever the modal is closed. Otherwise, next time, ConfirmModal will not be shown as isVisible was already true. e.g.
is necessary. Then we still need to pass a callback to reset the parent Component state. Thus my first proposal stands correct. Can you think of a way to mitigate this? If so, let me know. |
@parasharrajat I get why it's a problem. And I don't have a better solution. I'll throw some ideas, but I don't want to waste your time. Umm some clever design pattern could do the trick. |
We will loop back around to this after the n6-hold is lifted |
Hired. |
Not overdue. Awaiting deploy to prod. |
ConfirmModal
around the appConfirmModal
around the app
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.8-9 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2021-10-30. 🎊 |
Just curious, do I have to apply somewhere for issue reporting bonus? |
@rushatgabhane Nope! We'll pay you when we pay the author of the PR. I think there's been a slight hold up here because @trjExpensify (the Contributor Manager on this issue) has been Out Of Office. He comes back tomorrow, and I'm sure the payment will be processed at that time. Sorry for the delay! |
@parasharrajat you're now paid - thanks for patience - Tom was taking some well deserved OOO and this slipped through the net! @rushatgabhane i've hired you for the job in upwork, as soon you accept I'll end the contract and get you paid tomorrow. Thanks! |
@rushatgabhane paid! Thanks! |
@laurenreidexpensify to the rescue! Thanks! |
@laurenreidexpensify Appreciate it! Thank you! |
Hey, @laurenreidexpensify I was expecting the N6 bonus. |
Ah sorry Rajat - will hook you up now! |
Done! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Escape should close the ConfirmModal
Actual Result:
Escape doesn't do anything.
Workaround:
User has to close the modal manually
Platform:
Where is this issue occurring?
Version Number: 1.0.95-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Upwork Job URL: https://www.upwork.com/jobs/~01ae467f5cc80cb019
Issue reported by: @rushatgabhane
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1631136254079800
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: