Closed mateimarica closed 1 month ago
Try document.addEventListener("paste", ...
instead of document.onpaste
. The latter could be overwriting a browser-set listener.
Try
document.addEventListener("paste", ...
instead ofdocument.onpaste
. The latter could be overwriting a browser-set listener.
This is not the issue. I've seen it work before on firefox.
Pasting an image from the clipboard (eg: PrtScr then CTRL+V) works fine in Firefox.
Copying files from the File Explorer then pasting does not work.
Seems to work fine now on Firefox 129.0
event.clipboardData
just has no items in it. Works fine on chrome.