FLUID-5: DnD: Dropping on Invalid Target Causes Item to Disappear

Description

In LIghtbox.html the problem occurs when using the mouse to drag an item “off the grid”. The item disappears and is no longer accessible to the user.

Environments

Windows XP SP2 Firefox 2.0.0.4

Comments

  • Jonathan Hung commented 2007-06-28T12:35:18.000-0400

    After updating to the latest Dojo and Dijit code, some of this problem is fixed with the following exceptions:

    In IE6 on Windows XP, dropping into an invalid target inside the Lightbox DIV, the selected item appends to the bottom of the list. If you drop the selected item into an invalid target outside the Lightbox DIV, the item disappears.

    In Firefox 2+ on Windows XP, dropping into an invalid target inside the Lightbox DIV, the selected item is inserted at the beginning of the list.

    In Firefox 2+ on Mac, dropping into an invalid target inside or outside the Lightbox DIV, the selected item is inserted at the end of the list (appending seems to be the expected behaviour, since that is what happens in the dojo test files).

  • Anastasia Cheetham commented 2007-10-01T14:27:53.000-0400

    This issue might be fixed by dojo 0.9, and should only be addressed after the upgrade.

  • Michelle D'Souza commented 2007-10-04T17:16:37.000-0400

    This was a difficult to repeat problem where a node had been removed from the DOM and due to some combination of event timing and the alignment of the stars dropping the node onto an invalid target never reinserted the node. To work around the problem, we overrode the dojo onDndCancel in the reorderer and handled the special case.

  • Michelle D'Souza commented 2007-10-22T13:58:02.000-0400

    Since we’ve moved to jQuery UI’s drag and drop this is no longer relevant.