osf.io icon indicating copy to clipboard operation
osf.io copied to clipboard

[PLAT-882] Local files render in browser if you miss wiki drag and drop

Open Johnetordoff opened this issue 6 years ago • 0 comments

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

Johnetordoff avatar Jun 27 '18 17:06 Johnetordoff