bevacqua / dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/dragula/
MIT License
21.89k stars 1.97k forks source link

adding new drag&drop section error #615

Closed divad1196 closed 3 years ago

divad1196 commented 4 years ago

I was trying to add section "category" for drag and drop, but i got errors: "TypeError: fe.mirrorContainer is null dragula.min.js:1:4401 K https://cdnjs.cloudflare.com/ajax/libs/dragula/3.7.2/dragula.min.js:1 N https://cdnjs.cloudflare.com/ajax/libs/dragula/3.7.2/dragula.min.js:1 TypeError: e is null dragula.min.js:1:955 i https://cdnjs.cloudflare.com/ajax/libs/dragula/3.7.2/dragula.min.js:1 z https://cdnjs.cloudflare.com/ajax/libs/dragula/3.7.2/dragula.min.js:1 j https://cdnjs.cloudflare.com/ajax/libs/dragula/3.7.2/dragula.min.js:1 M https://cdnjs.cloudflare.com/ajax/libs/dragula/3.7.2/dragula.min.js:1 L https://cdnjs.cloudflare.com/ajax/libs/dragula/3.7.2/dragula.min.js:1 "

It appears when drake element is created before the body apparently, i discovered it by trying the exemple given here : http://jsfiddle.net/rp5a63n9/

I attached my code, i add to rename the file as txt but it is a html file todo.txt

What is the reason? Should it be fixed? Thanks for the responses, Have a nice day.