Is there any opposite method for DragManager.acceptDragDrop(),like DragManager.removeDragDrop() which can be handled in dragExit event.any ideas..
Asked
Active
Viewed 936 times
2 Answers
0
actually I had the same problem, You just have to do on dragExit() something like this, to prevent handling dropExit event: event.preventDefault(); That stops propagation of the event and handling dropDrag.

Graphitt
- 11
- 2
0
The opposite of this:
DragManager.acceptDragDrop(component);
is this:
DragManager.acceptDragDrop(null);
Or just not call DragManager.acceptDragDrop
at all, here you can read this:
If the drag data is not in a compatible format, do not call the DragManager.acceptDragDrop() method. If the event handler does not call this method, the user cannot drop the data and the drop target will not receive the dragOver, dragExit, and dragDrop events.

Lucas Gabriel Sánchez
- 40,116
- 20
- 56
- 83
-
This is not working.I have to handle this in dragExit event.My situation is when the user drags and enter the component it should accept the drag and if the user doesnt drop and if he/she drags it out of the component dragExit should remove DragManager.acceptDragDrop() method.How to handle this?? – Naveen May 09 '11 at 05:08
-
To be honest I don't know how you can do this. And I don't even know why you must do it. – Lucas Gabriel Sánchez May 09 '11 at 18:05