How do you get the selected items from a dragstart event in Chrome? Is dataTransfer.getData broken?

前端 未结 2 502
你的背包
你的背包 2021-01-15 11:52

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-

2条回答
  •  情深已故
    2021-01-15 11:55

    Paste this line before the error line:

    event.dataTransfer = event.originalEvent.dataTransfer;
    

    This worked for me.

提交回复
热议问题