You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The toArray function creates a fake root item instead of using the existing one in the ordered list.
I also tried to indicate the rootID to nestedSortable by using the rootID option like this (see under) without more success. This option makes the "fake root" to use the 'ol.sortable li:first-child' id, which then is showed twice : in the "fake root" (index 0) and in the real root (index 1)
How can I avoid that behavior ? Otherwise, it will create an extra root item each time the user will use the nestedSortable interface. Skipping the fake root while storing the tree in db will make me to have a root with a left index of 2 instead 1.
Hello !
When using a nested list which contains a root list-item like this :
nestedSortable has been instanciated like this :
The toArray function creates a fake root item instead of using the existing one in the ordered list.
I also tried to indicate the rootID to nestedSortable by using the rootID option like this (see under) without more success. This option makes the "fake root" to use the 'ol.sortable li:first-child' id, which then is showed twice : in the "fake root" (index 0) and in the real root (index 1)
How can I avoid that behavior ? Otherwise, it will create an extra root item each time the user will use the nestedSortable interface. Skipping the fake root while storing the tree in db will make me to have a root with a left index of 2 instead 1.
I wish, if possible, to keep the toArray function, since it provides me left and right index for storing the tree in database.
Many thanks in advance for your tips !
The text was updated successfully, but these errors were encountered: