Images not uploading when you hit return immediately after pasting
See original GitHub issueIf you haven’t already, check out our contributing guidelines for onboarding!
Expected Result:
- The Image should upload
Actual Result:
- The image doesn’t upload and the upload attachment modal closes
Action Performed (reproducible steps):
- Copy an image to clipboard
- Click on compose box in chat with user or test account
- Paste image into compose by by typing
command+v
- immediately tap enter twice or more.
- Observe image doesn’t upload
Workaround:
Wait a couple of seconds before hitting enter.
Platform:
Desktop App
Version Number: Desktop v.2-52 Notes/Photos/Videos: https://user-images.githubusercontent.com/22508304/111228887-35476680-85a2-11eb-970c-518ba9fdb640.mp4 **Expensify/Expensify Issue URL:**https://github.com/Expensify/Expensify/issues/157267 Upwork URL: https://www.upwork.com/jobs/~016727690d69f1c182
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
I cannot paste a photo after another photo, it replaces the fist ...
I have this problem with google Docs where I try to place a cursor after a photo so I can add text immediately...
Read more >Paste an image from the clipboard - Microsoft Tech Community
I found this workaround that if you refresh the browser (while you are on the page where you want to paste) it works...
Read more >How to prevent images from moving around in a Microsoft ...
Click the File menu and choose Options. · In the left pane, click Advanced. · In the Cut, Copy, Paste section, click the...
Read more >Copy/paste from Microsoft Word triggers image upload
You can press Ctrl+Shift+V to paste as plain text. ... The Stack Exchange editor supports images, so when the clipboard offers that format,...
Read more >Google Docs: Inserting Images - GCFGlobal
This is because of the text wrapping settings on the image. You'll need to change the text wrapping setting if you want to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@marcaaron. Yes the solution still works without moving the keyboard events to
onModalWillShow
. So after pasting the image and pressing enter will not cancel the attachment Modal. But the Image will not be submitted until the modal is shown and then on pressingEnter
the image will be submitted.Updating the proposal to reflect this scenario.
Ok, that doesn’t sound like an optimization we need. The modal shows very quickly.