Opened 14 years ago
Closed 14 years ago
#2490 closed defect (fixed)
Image tag as a drag copy source doesn't work in Mircosoft IE 7
Reported by: | Owned by: | psowden | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | DnD | Version: | 0.4.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
After I dragged and dropped a <image> as drag copy source, I can't drag and drop this source to another drop target in IE 7.0 web browser. But it work`s fine with Firefox 1.5 and 2.0 . If I have integrated a letter between the <span> and <image>, then I can drag at on the letter, but still not at the picture.
Code example:
...
new dojo.dnd.HtmlDragCopySource?(dojo.byId("modul"), "mod", true);
...
<span id="modul"><img src="abc.jpg" alt="A modul"/></span>
dojo version 0.4.1
IE version 7.0
WIN XP
Note: See
TracTickets for help on using
tickets.
The following (moderately tested) patch seems to cure the problem:
Alternatively, setting .ondrag = function () { return false; }; on the target node should work too.