Detected in interface 1.1.2, latest version downloaded 08/02/2007.
When a previously draggable item is marked is DraggableDestroy?()ed, it correctly loses its drag'n'drop functionality, but does not regain standard browser functionality, such as the ability to select text.
-
Possible cause:
I believe this is due to the fact that the jQuery.iDrag.build() method overrides a large number of browser events (onselectstart, ondragstart, ondrag...), but the jQuery.iDrag.destroy() method just unbinds the iDrag init and resets a couple of variables, and does not restore the browser events.
-
Desired situation:
I believe that in this situation, the Draggables plugin should restore standard browser functionality (e.g. selection) when the Draggable is destroyed.
-
Possible solution:
Alter iDrag.destroy() to ensure it restores browser events.
-
Why this is important:
Although this does not affect the operation of the Draggable plugin on its own, it does affect its interaction with other plugins, and with more basic browser functions. Essentially, anything that is draggable cannot have any other useful functionality that relies on the browser's drag and drop. The example I'm hitting is the attempt to have an Editable field inside a draggable item (drag and drop items between folders, click on their name to rename them, like Explorer). In this case, the Editable plugin works fine and creates the input field, but the input field itself is broken - visual feedback of text selection is missing, and it's not possible to select the text inside the field with the mouse.
-
How to contact me for more info:
I can be found on #jQuery on freenode under name KDan in very early UK morning (3am->6am) and some evenings, or emailed at:
daniel /
at /
tenner /
dot /
org /
I'll check this ticket every few days to see if more information is requested, too.