Search code examples
javascriptdragula

Drag row into empty table using Dragula


I'm trying to use Dragula (with angular-dragula actually) to drag a row from one table to another. If both tables have rows there are no problems, but there are cases where the target table will be empty. How do I make the empty table allow for a drop?


Solution

  • Maybe the table is too small? Try changing min-height.


    Insert a placeholder row when there is nothing in the table http://plnkr.co/edit/0TBXXZOBAKnGxHig3xzD?p=preview