I'm submitting a ...
[x ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Callbacks bound to lifecycle hooks don't fire when expected.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar.
Drag an item from the 'Available List' to the 'Second Team'. Move the cursor through the 'Second Team' dropzone, and release the cursor outside of the 'Second Team' dropzone. The item should be added to the 'Second Team' list, however neither the onDragSuccess event nor the onDragEnd event is fired. onDragSuccess only fires if you release the cursor while it is positioned inside of a dropzone, on top of the item you were dragging. onDragEnd only fires if you drag and release an item still in it's current dropzone.
What is the expected behavior?
The onDropSuccess event is fired whenever an item is successfully added to a list. The onDragEnd event fires whenever an item stops being dragged anywhere.
What is the motivation / use case for changing the behavior?
I want to update an object whenever a change is made to the list. Theoretically I should be able to use the onDropSuccess event, however I have found you can add an item to a list without triggering the onDropSuccess event. While trying to use the onDragEnd event instead, I discovered that onDragEnd only fires if you drag an item but don't leave it's current list.
Please tell us about your environment:
Angular: 2.4.7
ng2-dnd: 2.2.2
Browser: Chrome Version 56.0.2924.76 (64-bit)
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
I have included a .gif demonstrating the issue, but man, what a terrible looking .gif. If my explanation is unclear I will try recording something of better quality, hopefully that will help...
I'm submitting a ... [x ] bug report [ ] feature request [ ] question about the decisions made in the repository
Do you want to request a feature or report a bug? Bug
What is the current behavior? Callbacks bound to lifecycle hooks don't fire when expected.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar. Drag an item from the 'Available List' to the 'Second Team'. Move the cursor through the 'Second Team' dropzone, and release the cursor outside of the 'Second Team' dropzone. The item should be added to the 'Second Team' list, however neither the onDragSuccess event nor the onDragEnd event is fired. onDragSuccess only fires if you release the cursor while it is positioned inside of a dropzone, on top of the item you were dragging. onDragEnd only fires if you drag and release an item still in it's current dropzone.
https://plnkr.co/edit/0PVipgYqx4cNOXJBienj?p=preview
What is the expected behavior? The onDropSuccess event is fired whenever an item is successfully added to a list. The onDragEnd event fires whenever an item stops being dragged anywhere.
What is the motivation / use case for changing the behavior? I want to update an object whenever a change is made to the list. Theoretically I should be able to use the onDropSuccess event, however I have found you can add an item to a list without triggering the onDropSuccess event. While trying to use the onDragEnd event instead, I discovered that onDragEnd only fires if you drag an item but don't leave it's current list.
Please tell us about your environment:
Angular: 2.4.7
ng2-dnd: 2.2.2
Browser: Chrome Version 56.0.2924.76 (64-bit)
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc) I have included a .gif demonstrating the issue, but man, what a terrible looking .gif. If my explanation is unclear I will try recording something of better quality, hopefully that will help...