-
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
Chat - Attachment picker is briefly displayed after taking picture to upload in chat #2580
Comments
Triggered auto assignment to @sonialiap ( |
@roryabraham At the time of the PR, when a modal was closing the compose input would be auto focused which would interfere with the gallery/camera and dismiss it. The only way to prevent this was to keep the popup modal open Now since compose autofocus no longer happen automatically on mobile devices this can be updated so that the 2nd modal, the attachment picker, closes while you take a picture or select something from gallery/documents I can apply a proposal if you're interested |
@kidroca, thanks for the explanation! We don't have an upwork job for this yet, but when we have it posted I'll ping you and make sure you're first in line 🙂 |
Triggered auto assignment to @stephanieelliott ( |
Triggered auto assignment to @deetergp ( |
Job post on Upwork: https://www.upwork.com/jobs/~01e62dbc72de7f7a3e ☝️ @kidroca |
ProposalThe logic here: Can be altered to something like: <MenuItem
key={text}
icon={icon}
title={text}
onPress={() => {
// first tell the popover to start closing
this.close();
// invoke the attachment picking action
pickAttachment()
.then(this.setResult)
.catch(console.error)
.finally(this.completeAttachmentSelection)
}}
/>
Right now Alternatively instead of calling |
@kidroca Your proposal sounds good, provided it doesn't somehow break the expected behavior of the app on Android. Go ahead and create a PR 👍 |
This happens on Android as well. Both will be addressed by the proposed changes Android.Emulator.-.Pixel_2_API_29_5554.2021-04-29.15-05-20.mp4@isagoico You might want to update the issue description to list Android as affected too |
@deetergp |
Thanks @kidroca, I sent you the offer on Upwork! |
Issue reproducible during today's KI retests |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Expected Result:
Upload Attachment screen displayed
Actual Result:
Attachment picker screen displayed for a moment before Upload attachment screen
Action Performed:
Workaround:
No need, visual issue.
Platform:
Where is this issue occurring?
Web
iOS ✔️
Android ✔️
Desktop App
Mobile Web
Version Number: 1.0.31-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Video
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/161920
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: