Follow up question from ng2-dragula setOptions and drop version problem.
Currently, I'm using a placeholder to cheat my way out of the empty container. I believe what I'm doing currently is wrong which is declaring dragula
and [(dragulaModel)]
in both the content and container.
As you probably notice in fork of my another question demo the container was able to be dropable anywhere in the container. While in the current fork it's not working like that.
The difference lay in the input checkbox which I add in the html file. What I tried to achieve is something like this which had a <input>
inside the draggable content.
Is there any issue which prevents it to work like intended? Or did I do something wrong while being unaware?
If I understand well your issue, the only thing you need is a height for the empty container (it comes from the class at the first example). so if you have a height you can drop into to the target container. I hope it makes sense. changes:
<div id="target" dragula="dnd" [(dragulaModel)]="target" style="height:50px">