Please see video:
After drop of parent- the children-categories are shown like the parent.
After drop of parent- the children-categories are not shown below the parent.
The issue come up at #34375
Labels |
Added:
?
|
I wonder for what this option
joomla-cms/build/media_source/system/js/draggable.es6.js
Lines 36 to 37 in ad06aa4
seems does not make any difference
Guess that's used to prevent dragging an element from one group to a different group only. We do not have a way to move the whole group (parent and it's children) to new position.
@Fedik @joomdonation please read the commend at the beginning of the conditional, this is the fallback for B/C.
@dgrammatiko I think we understand that. @Fedik wanted to know if that could be used to solve the issue you are having here.
Do you think we can have a solution for dragula to handle drag and drop the whole group as we are having in J3?
FWIW at the drop event if the dragged element was a category parent I guess we could move all the children after it.
pseudocode:
// el the dragged element
Array.from(document.querySelectorAll(el.dataset.nested).reverse().filter(l => l !== el).map(
// move them under el...
)
I was thinking the same but that's beyond my JS skill :(.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-06-21 10:31:42 |
Closed_By | ⇒ | Fedik |
@dgrammatiko @Fedik This is the question/issue I asked you two yesterday. Would be nice if we can come up with a solution (although I'm unsure if it is possible with the library we are using)