Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Ignore Errormessage?

Open ChiefORZ opened this issue 11 years ago • 8 comments

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?

ChiefORZ avatar Apr 12 '15 16:04 ChiefORZ

  1. Try dev-branch, perhaps the problem has been solved;
  2. Create example on jsbin.com.

RubaXa avatar Apr 12 '15 16:04 RubaXa

Thanks for the lighting-fast response!

  1. doesn't make any difference with dev.
  2. 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 :)

ChiefORZ avatar Apr 12 '15 17:04 ChiefORZ

+1 - having the same issue

dkrotts avatar Apr 16 '15 18:04 dkrotts

Currently there are no ideas how to fix it nicely.

RubaXa avatar Apr 18 '15 10:04 RubaXa

Same issue, maybe wrap this code block in try catch in sortable.js and ignore error HierarchyRequestError?

Pitmov avatar Jun 22 '15 11:06 Pitmov

Fixed, try dev-branch.

RubaXa avatar Sep 09 '15 14:09 RubaXa

Thank you, very much appreciated!

ChiefORZ avatar Sep 09 '15 15:09 ChiefORZ

Awesome!

nesvet avatar Sep 09 '15 23:09 nesvet