| Issue 458: | Drag and Drop helper does not show dragged item text when drag start from icon or left of it (tree part) | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Begin drag operation from tree element icon 2. Watch at the dragged helper text (appears as empty) If possible, please attach an example HTML file (e.g. a copy of `doc/_test- ISSUE.html`), that reproduces the problem when copied into the dynatree/doc/ folder or reproduce on jsFiddle: Any of the drag & drop samples would do - http://wwwendt.de/tech/dynatree/doc/samples.html What is the expected output? What do you see instead? Expect to see dragged item's full text, just as happens when beginning the drag operation from item text. What version of the dynatree and jQuery are you using? 1.2.4 On what operating system and browser? Windows 7/Chrome (reproduces on any) What DOCTYPE declaration are you using? any Please provide any additional information below. The root cause in the code is in lines #2747-2748: var $helper = $("<div class='dynatree-drag-helper'><span class='dynatree-drag-helper-img' /></div>") .append($(event.target).closest(".dynatree-title").clone()); when the event drag starts from the icon, the above 'closest' operation call does not return the sought after element as it is not contained in it. Making the following change addresses this: var $helper = $("<div class='dynatree-drag-helper'><span class='dynatree-drag-helper-img' /><a>" +node.data.title + "</a></div>");
Nov 19, 2013
(No comment was entered for this change.)
Labels:
-Milestone-Release1.2.5 Milestone-Release1.2.6
|
Labels: Milestone-Release1.2.5