Why not just set a flag instead of calling preventDefault, then check
the flag afterwards.
BTW, you shouldn't be dispatching COLLECTION_CHANGE yourself. Best to
use itemUpdated when changing quantity. A COLLECTION_CHANGE will fire
when the default code inserts the dropped items.
IIRC, the DragDrop event is the right place and you were already doing
that. If you don't preventDefault that event, it will insert the
dragged items into the DP. I haven't been paying close attention so I'm
not clear what problem you ran into that makes you think this isn't the
way to go.
2 matches
Mail list logo