HTML5 Drag and Drop getData() only works on drop event in Chrome?

前端 未结 2 1075
一生所求
一生所求 2020-12-30 23:56

I\'m currently working on a project at work using the HTML5 Drag and Drop API to provide added functionality including dragging items in and out of browsers. I am currently

2条回答
  •  我在风中等你
    2020-12-31 00:20

    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.

提交回复
热议问题