How Do You Get The Selected Items From A Dragstart Event In Chrome? Is DataTransfer.getData Broken?
I am part of a team that works on a Java application that, among other things, helps people organize and annotate information from the web. We currently use a Firefox plug-in that
Solution 1:
WebKit, and hence Chrome, is quite restrictive on when you can call getData
. You're not allowed to do it inside dragstart
or dragover
. I think this is the canonical bug.
Solution 2:
Paste this line before the error line:
event.dataTransfer = event.originalEvent.dataTransfer;
This worked for me.
Post a Comment for "How Do You Get The Selected Items From A Dragstart Event In Chrome? Is DataTransfer.getData Broken?"