-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Paste works with certain quirks in Chrome #1577
Comments
I can confirm this, Chrome won’t accept paste when focus is on buttons, only after you click somewhere on the Dashboard. @lakesare, could you please take a look? Is there a fix? |
If there is a way to simulate that click without any user interaction, it would be awesome! Thanks. |
I PRed a fix for this issue #1583 (it's based on the /accessibility PR, I wanted to use a function from that PR initially). If we are focused on a I'd argue most people are used to clicking on an element if they want to paste something (I do so at least), but maybe this PR could save some confusion. |
#1619 was merged, so pasting in Chrome will be improved in the next Dashboard release. |
Referring to the uppy.io Live Demo.
Have a .PNG open in your editor/viewer of choice and Copy the image (Ctrl+C or context menu based)
In Chrome
In Firefox
Chrome seems to require a mouse click anywhere on the Uppy dialog but the buttons (Browse or any of the provider buttons). Subsequent to that click, Ctrl-V seems to work.
openModal()
seems to set focus on Browse button which is the state of an Uppy modal popup that I have replicated in the steps above.Can you guys shed light on why this seems to be an issue with Chrome? Seems like onPaste is not fired on inputs/button. So my logical step was to grab handle on
uppy-Root
or an inner div and callfocus()
and then trigger the Ctrl-V but that doesn't work either. Nothing seems to work except for when I click with the mouse on the dialog.Please help! My bottom line would be, "If I launch Uppy modal with out openModal() called, how can I have a default state where I press Ctrl-V after the launch and the image gets pasted (without having to click inside the modal)"
The text was updated successfully, but these errors were encountered: