fredsa / gwt-dnd

Library providing easy to use mouse or touch based drag-and-drop capabilities to GWT
43 stars 41 forks source link

Selected widgets are not cleared after drag ends #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Does the issue occur in "quirks mode", "standards mode" or both? If you
don't know, does your HTML page contains a DOCTYPE declaration?
   Standards

What version of GWT are you using? 1.4.60? 2.0.4? Other?
   2.0.4

What version of the gwt-dnd jar file or library file are you using?
   3.1.2

What operating system(s) are you using? Windows? Linux? Mac?
   Windows, Mac

Does the issue occur in web mode, development mode (formerly "hosted
mode"), both or don't know?
   Both

What browser(s) do you use? Chrome, Firefox, IE, Safari, other?
   Chrome, Firefox, IE, Safari

What is the browser version (if you know) from Help->About?
   Latest

What steps will reproduce the problem? Please attach sample code if you can.
   Note, we use drag proxies and create new elements when dropped.
   1. Select multiple widgets via CTRL.
   2. Drag them to a new position.
   3. DragController retains items as being selected even if original items no longer exist on document.

What is the expected output? What do you see instead?
   I would expect that when a drag operation ends, not only does the dragEndCleanup cleanup the dropController and the draggable, but also any selected widgets (make a call to dragController.clearSelection()).

Do you have a workaround?
   Make a call to context.dragController.clearSelection() somewhere in your code after your drop has finished.

Original issue reported on code.google.com by ag...@redesetgrow.com on 22 Feb 2012 at 3:42