Ignore Errormessage?
I built a wonderful Sortable Treeview - i love this Library soo much, i can not thank you enough for your Work and the support you offer! (I think there is a Donate-Button missing :stuck_out_tongue_winking_eye: )
Anyways. As I've said, i have built a powerful Treeview with unlimited Nesting.
One thing is, when i try to pull the father of a Tree into it's Children the message 'Uncaught HierarchyRequestError: Failed to execute 'insertBefore' on 'Node': The new child element contains the parent.' appears in the Developer Console.
The Library is smart enough that it doesn't even happens. It seems to work very very well. Do you think i should bother preventing this message to occur, or do you think something bad could happen if i dont?
Thanks for the lighting-fast response!
- doesn't make any difference with dev.
- http://jsbin.com/rutekebatu/4/edit?html,js,output
To test it, try to drag the item 'test 1' into 'test 1.1' and watch the console exploding of error messages :)
+1 - having the same issue
Currently there are no ideas how to fix it nicely.
Same issue, maybe wrap this code block in try catch in sortable.js and ignore error HierarchyRequestError?
Fixed, try dev-branch.
Thank you, very much appreciated!
Awesome!