Scenario that generates error:
- App uses dragulaService in controller.
- dragularService "copy" option is set to true.
- User drags element from container (container with copy option).
- User drops element outside of any dragular container.
Error generated:
TypeError: Cannot read property 'splice' of undefined
at applyDrop (service.js:57)
Example that reproduces error:
I have successfully reproduced error in this plnkr example
Recommended fix:
Bailing out if drop target for dragularService "drop" event is null solves problem.
Pull request with applied fix:
Here you can find request for merging fix #75
Scenario that generates error:
Error generated:
Example that reproduces error:
I have successfully reproduced error in this plnkr example
Recommended fix:
Bailing out if drop target for dragularService "drop" event is null solves problem.
Pull request with applied fix:
Here you can find request for merging fix #75