-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 2022-12-20] [$1000] Profile : Upload/Delete Photo popup not hiding #13435
Comments
Triggered auto assignment to @isabelastisser ( |
I can reproduce. @isabelastisser can you please apply the Engineering label to get it assigned. Doesn't work if I do it since I'm already on the engineering team. I'll start investigating in the meantime. |
Triggered auto assignment to @marcaaron ( |
Ok I just ran a git bisect, and it seems to come from this PR, which makes sense because it changed |
Ok so I managed to fix it by adding a |
@Luke9389 want to assist with this one? I don't have much context on the linked PR so would probably just revert it so it can go back to reviews. @francoisl feels like the popover should be closing. I tested in a few other places and it closes. For some reason it doesn't close here. So, the workaround you mentioned might work, but doesn't explain the root cause. |
I found exact root cause (not related to that PR though it is a regression). I will post here with solution shortly. |
Root cause:
This fires parent component's onPress event here: App/src/components/AvatarWithImagePicker.js Line 250 in cb256f9
so isMenuVisible (which was set to false) set to true again
Solution: <input
hidden
type="file"
ref={el => this.fileInput = el}
onChange={(e) => {
const file = e.target.files[0];
if (file) {
file.uri = URL.createObjectURL(file);
this.onPicked(file);
}
// Cleanup after selecting a file to start from a fresh state
this.fileInput.value = null;
}}
+ onClick={e => e.stopPropagation()}
accept={getAcceptableFileTypes(this.props.type)}
/> Why this issue not exist before making that PR?
I checked all usages of |
@0xmiroslav 👏 excellent! So the parent |
Current assignee @isabelastisser is eligible for the External assigner, not assigning anyone new. |
Job added to Upwork: https://www.upwork.com/jobs/~01a23347fca2f83eaf |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Current assignee @marcaaron is eligible for the External assigner, not assigning anyone new. |
📣 @0xmiroslav You have been assigned to this job by @marcaaron! |
@thesahindia removing you here as we already have a workable solution |
Thanks for assigning me @marcaaron |
This comment was marked as off-topic.
This comment was marked as off-topic.
@allroundexperts I minimized your comment because it's not really germane to this issue. If you have any specific concerns about our process in general feel free to bring those up in Slack, thanks! |
This comment was marked as off-topic.
This comment was marked as off-topic.
@s77rt take it to Slack please. It is not relevant to this issue. |
Not a deploy blocker since the fix was CP-d so I'm removing deployBlockerCash label. I also tested on staging and it looks like the issue is resolved. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.38-6 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 2022-12-20. 🎊 After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@0xmiroslav, I sent you an invitation for the job in Upwork, please apply and I will hire you and issue the payment ASAP. Thanks! |
|
@isabelastisser Reporting bonus not issued! |
@Santhosh-Sellavel sorry about that! I invited you to the job in Upwork now, please accept it and I will extend the contract and issue the payment. Thanks! |
Applied @isabelastisser |
@Santhosh-Sellavel paid. All set! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Actions Performed:
Expected Result:
Should hide options after selecting one of them
Actual Result:
Not hiding even after selecting one of the options. Need to click outside the options to make it go away
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.37-0
Reproducible in staging?: y
Reproducible in production?: n
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Screen.Recording.2022-12-07.at.10.30.59.PM.mov
Recording.3212.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Santhosh-Sellavel / Applause internal team
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1670432916695299
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: