osf.io
osf.io copied to clipboard
[PLAT-882] Local files render in browser if you miss wiki drag and drop
Purpose
Currently in Chrome if you attempt to drag and drop something, but miss the textbox your Chrome will seize your browser's window and display the dropped image. This fix prevents that.
Changes
- simple preventDefault on window
QA Notes
Using all browsers drop files anywhere on the wiki page, nothing should happen unless the file is dropped on the textbox.
Documentation
🐞 fix no docs.
Side Effects
None that I know of.
Ticket
https://openscience.atlassian.net/browse/PLAT-882