?
avatar sandramay0905
sandramay0905
4 Jun 2021

Steps to reproduce the issue

Please see video:

120749908-aba29780-c505-11eb-97c6-3d05927a03b3

Expected result

After drop of parent- the children-categories are shown like the parent.

Actual result

After drop of parent- the children-categories are not shown below the parent.

System information (as much as possible)

image

Additional comments

The issue come up at #34375

avatar sandramay0905 sandramay0905 - open - 4 Jun 2021
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jun 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Jun 2021
avatar joomdonation
joomdonation - comment - 4 Jun 2021

@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)

avatar Fedik
Fedik - comment - 4 Jun 2021

I wonder for what this option

isNested = options.nested;
}

seems does not make any difference

avatar joomdonation
joomdonation - comment - 4 Jun 2021

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.

avatar dgrammatiko
dgrammatiko - comment - 4 Jun 2021

@Fedik @joomdonation please read the commend at the beginning of the conditional, this is the fallback for B/C.

avatar joomdonation
joomdonation - comment - 4 Jun 2021

@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?

avatar dgrammatiko
dgrammatiko - comment - 4 Jun 2021

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...
)
avatar joomdonation
joomdonation - comment - 4 Jun 2021

I was thinking the same but that's beyond my JS skill :(.

avatar Fedik Fedik - close - 21 Jun 2021
avatar Fedik
Fedik - comment - 21 Jun 2021

please test #34584

avatar Fedik Fedik - change - 21 Jun 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-06-21 10:31:42
Closed_By Fedik

Add a Comment

Login with GitHub to post a comment