Skip to main content

Bug Tracker

Side navigation

#10756 closed enhancement (worksforme)

Opened November 11, 2011 10:15AM UTC

Closed November 11, 2011 03:55PM UTC

Last modified November 11, 2011 03:56PM UTC

file drop event dataTransfer undefined

Reported by: sfornengo@gmail.com Owned by:
Priority: low Milestone: None
Component: event Version: 1.7
Keywords: Cc:
Blocked by: Blocking:
Description

$("#dropbox").on("drop",function(e){

e.dataTransfer undefined

}

not using jquery:

$("#dropbox")[0].addEventListener("drop",function(e){

e.dataTransfer.files works as expected

},false);

http://jsfiddle.net/NU8m7/

Attachments (0)
Change History (5)

Changed November 11, 2011 01:12PM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Changed November 11, 2011 01:13PM UTC by dmethvin comment:2

Duplicate of #10729.

Changed November 11, 2011 03:39PM UTC by rwaldron comment:3

resolution: duplicate
status: closedreopened

Changed November 11, 2011 03:55PM UTC by rwaldron comment:4

component: unfiledevent
priority: undecidedlow
resolution: → worksforme
status: reopenedclosed

Use an even property fix hook :)

jQuery.event.fixHooks.drop = { props: [ "dataTransfer" ] };

See: http://jsfiddle.net/rwaldron/6AXjU/

Changed November 11, 2011 03:56PM UTC by rwaldron comment:5