fredsa / gwt-dnd

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

Window.confirm in onPreviewDrop leads to context.selectedWidgets be empty #120

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What version of GWT are you using? 1.3.3? 1.4.60? Other?
2.04
What version of the gwt-dnd jar file or library file are you using?
2.01
What operating system(s) are you using? Windows? Linux? Mac?
Windows
Does the issue occur in web mode, hosted mode, both or don't know?
hosted mode, not tested in web mode
What browser(s) do you use? Firefox, IE, Safari, other?
bug appeares in firefox 3.5 and crome 5.0.
in ie 8, everything works fine (surprise)

Window.alert(context.selectedWidgets.size()+""); => size >= 1

if(!Window.confirm("Bla")){
    throw new VetoDragException();
}

Window.alert(context.selectedWidgets.size()+""); 
//size is 0 in ff
//in crome size is fine, but drop doesnt succeed and dragable items stay "in 
air"

Original issue reported on code.google.com by Smike...@gmail.com on 1 Sep 2010 at 6:06